Screen anomaly detection method and device and electronic equipment

By calculating the CRC value by acquiring the status information of the display's functional items in real time, the problem of low efficiency and poor accuracy in screen anomaly detection in existing technologies is solved, achieving fast and accurate screen anomaly detection and improving the stability of the display and user experience.

CN121922049APending Publication Date: 2026-04-24VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
VIVO MOBILE COMM CO LTD
Filing Date
2026-03-04
Publication Date
2026-04-24

AI Technical Summary

Technical Problem

Existing screen anomaly detection methods are inefficient and inaccurate, making it difficult to meet the requirements for display quality and system stability in fields such as mobile terminals and in-vehicle equipment.

Method used

By acquiring the status information of each function item on the display screen in real time, calculating the Cyclic Redundancy Check (CRC) value, and comparing it with the reference CRC value, fast and accurate screen anomaly detection can be achieved.

Benefits of technology

It enables rapid detection of screen anomalies at the microsecond level, accurately identifies display abnormalities, and improves the stability of screen display and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121922049A_ABST
    Figure CN121922049A_ABST
Patent Text Reader

Abstract

The invention discloses a screen anomaly detection method and device and electronic equipment, and belongs to the technical field of electronic equipment. The screen anomaly detection method comprises the steps that current state information of each function item of a display screen is acquired, each function item corresponds to one function of the display screen, and the function items comprise at least two of the following items: a color and gamma processing function, an image data compression function, a sub-pixel rendering function, an electrostatic discharge function, a frame rate adjustment function and a resolution adjustment function; determining a first cyclic redundancy check (CRC) value according to the current state information of each function item; and comparing the first CRC value with a reference CRC value to obtain an anomaly detection result of the display screen, the reference CRC value being a reference CRC value corresponding to the current state information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of electronic equipment technology, specifically relating to a screen anomaly detection method, device, and electronic equipment. Background Technology

[0002] During the production and use of display devices such as Organic Light-Emitting Diode (OLED) screens and Liquid Crystal Displays (LCDs), various display anomalies may occur in the screen hardware, such as dead pixels, bright pixels, dark pixels, color spots, flickering, and uneven brightness. These anomalies not only affect the user's visual experience but may also indicate potential failures in the screen hardware.

[0003] With the increasing demands for display quality and system stability in mobile terminals, automotive equipment, industrial control, and other fields, real-time monitoring and timely response to screen display anomalies have become crucial for improving user experience and ensuring product reliability. Common display anomalies include black screens, distorted screens, frozen frames (screen freezes), and screen flickering. These problems can be caused by various factors, such as abnormal display control signals, display interface interruptions, and driver lag.

[0004] Currently used anomaly detection methods mainly include image detection and signal level detection. These methods suffer from low detection efficiency and poor accuracy, making it difficult to meet user needs. Summary of the Invention

[0005] The purpose of this application is to provide a screen anomaly detection method, device, and electronic device that can quickly and accurately identify screen display anomalies and improve the stability of screen display.

[0006] In a first aspect, embodiments of this application provide a screen anomaly detection method, including: Obtain the current status information of each function item of the display screen. Each function item corresponds to a function of the display screen. The function items include at least two of the following: color and gamma processing function, image data compression function, sub-pixel rendering function, electrostatic discharge function, frame rate adjustment function, and resolution adjustment function. The first cyclic redundancy check (CRC) value is determined based on the current status information of each functional item; The first CRC value is compared with the reference CRC value to obtain the anomaly detection result of the display screen. The reference CRC value is the reference CRC value corresponding to the current status information.

[0007] Secondly, embodiments of this application provide a screen anomaly detection device, comprising: The acquisition module is used to acquire the current status information of each function item of the display screen. Each function item corresponds to a function of the display screen. The function items include at least two of the following: color and gamma processing function, image data compression function, sub-pixel rendering function, electrostatic discharge function, frame rate adjustment function, and resolution adjustment function. The determination module is used to determine the first cyclic redundancy check (CRC) value based on the current status information of each functional item. The detection module is used to compare the first CRC value with the reference CRC value to obtain the anomaly detection result of the display screen. The reference CRC value is the reference CRC value corresponding to the current status information.

[0008] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the method as described in the first aspect.

[0009] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method as described in the first aspect.

[0010] Fifthly, embodiments of this application provide a chip, which includes a processor and a communication interface, the communication interface and the processor being coupled together, the processor being used to run programs or instructions to implement the steps of the method as described in the first aspect.

[0011] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which, when executed by at least one processor, implements the steps of the method described in the first aspect.

[0012] This application embodiment acquires the status information of each function item of the display screen in real time, calculates the actual CRC value based on the status information of each function item, and compares it with the reference CRC value to obtain the anomaly detection result. The calculation of the CRC value is usually implemented by hardware and can be completed in microseconds, which is very fast, thus enabling rapid detection. Moreover, this application calculates the CRC value based on the status information of each function item. Once the screen display is abnormal, the CRC value will change drastically. Therefore, based on the CRC value, the display anomaly can be accurately identified. Attached Figure Description

[0013] Figure 1 A flowchart illustrating a screen anomaly detection method provided in this application embodiment; Figure 2 A flowchart of another screen anomaly detection method provided in this application embodiment; Figure 3A flowchart of another screen anomaly detection method provided in this application embodiment; Figure 4 A flowchart of another screen anomaly detection method provided in this application embodiment; Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application; Figure 6 A flowchart illustrating the detection of screen anomalies during stress testing, provided as an embodiment of this application; Figure 7 This is a schematic diagram of the structure of a screen anomaly detection device provided in an embodiment of this application; Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application; Figure 9 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0014] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0015] The terms "first," "second," etc., used in this application's specification are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class, without limiting the number of objects; for example, a first object can be one or more. Furthermore, in the specification, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects have an "or" relationship.

[0016] The terminology used in the embodiments of this application will be explained below.

[0017] LCD: Liquid Crystal Display. LCDs themselves do not emit light and require a backlight layer (usually LEDs) to provide the light source. The liquid crystal layer acts like a series of "small gates," controlling the alignment of liquid crystal molecules by applying voltage, thus determining whether backlight can pass through. Colors are then formed by passing through red, green, and blue color filters.

[0018] DDIC: Display Driver Integrated Circuit, the "brain" of the screen. It is usually located at the edge of the screen and is responsible for receiving image signals from the processor or graphics card and converting them into instructions that can control the voltage of each pixel on the screen.

[0019] CRC: Cyclic Redundancy Check, is a technique used for error detection in data communication. In display technology, it is used to ensure that data packets transmitted from the signal source to the display (or DDIC) are error-free.

[0020] OLED: Organic Light-Emitting Diode. Each pixel is a tiny organic light-emitting material that can emit light on its own when powered on, without the need for a separate backlight layer.

[0021] FHD: Full High Definition.

[0022] QHD: Quad High Definition, four times the high definition.

[0023] To promptly detect display anomalies and improve screen display stability, this application provides a screen anomaly detection method, apparatus, and electronic device. By acquiring the status information of each functional item of the display screen in real time, calculating the actual CRC value based on the status information of each functional item, and comparing it with a reference CRC value, an anomaly detection result is obtained. CRC value calculation is typically implemented in hardware and can be completed within microseconds, making it extremely fast and enabling rapid detection. Furthermore, this application calculates the CRC value based on the status information of each functional item; once a screen display anomaly occurs, the CRC value will change drastically. Therefore, based on the CRC value, display anomalies can be accurately identified.

[0024] The screen anomaly detection method, apparatus, and electronic device provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.

[0025] Figure 1 This is a flowchart illustrating a screen anomaly detection method provided in an embodiment of this application. This method can be applied to any electronic device with a display screen and data processing capabilities, such as mobile phones, tablets, laptops, desktop computers, smartwatches, and smart bracelets. Figure 1 As shown, the screen anomaly detection method may include the following steps: S110. Obtain the current status information of each function item on the display screen.

[0026] Each function item corresponds to a function of the display screen, and the function items include at least two of the following: color and gamma processing function, image data compression function, sub-pixel rendering function, electrostatic discharge function, frame rate adjustment function, and resolution adjustment function.

[0027] S120. Determine the first cyclic redundancy check (CRC) value based on the current status information of each function item.

[0028] S130. Compare the first CRC value with the reference CRC value to obtain the abnormal detection result of the display screen. The reference CRC value is the reference CRC value corresponding to the current status information.

[0029] This application embodiment acquires the status information of each function item of the display screen in real time, calculates the actual CRC value based on the status information of each function item, and compares it with the reference CRC value to obtain the anomaly detection result. The calculation of the CRC value is usually implemented by hardware and can be completed in microseconds, which is very fast, thus enabling rapid detection. Moreover, this application calculates the CRC value based on the status information of each function item. Once the screen display is abnormal, the CRC value will change drastically. Therefore, based on the CRC value, the display anomaly can be accurately identified.

[0030] The above steps are explained in detail below: In S110, the functional items here are used to reproduce the visual image that digital content creators want to present, serving as a bridge connecting the digital world and human visual perception. Each functional item corresponds to a function of the display screen. In some embodiments, the functional items of the display screen may include, but are not limited to, image data compression (Display Stream Compression, DSC), backlight control, color and gamma processing, frame rate adjustment, resolution adjustment, high dynamic range (HDR) processing, subpixel rendering, and electrostatic discharge. In some embodiments, the functional items may include at least two of the following: color and gamma processing, image data compression, subpixel rendering, electrostatic discharge, frame rate adjustment, and resolution adjustment.

[0031] The status information of a function item indicates whether the corresponding function is enabled. For example, an electronic device can only execute the corresponding function and display it on the screen when a certain function is enabled. For instance, when the backlight control function is enabled, the electronic device can control the backlight of the display screen. When the backlight control function is disabled, the electronic device cannot control the backlight of the display screen, which may easily cause abnormal phenomena on the display screen.

[0032] Table 1 provides an example of the impact of some functional abnormalities on the display screen. In practical applications, other functionalities may also be included. Table 1 uses color and gamma processing, image data compression, subpixel rendering (SPR), and electrostatic discharge (ESD) functions as examples. Generally, color and gamma processing is calibrated on a per-chip basis at the factory, resulting in different gamma values ​​for each chip. Its impact on the screen is mainly reflected in the non-linear performance of brightness, thus affecting the screen's grayscale, contrast, color reproduction, and overall visual experience. To save transmission bandwidth, image data compression is usually enabled. If the parameters of image data compression are incorrect, inconsistencies in data compression and decompression can lead to screen distortion. The parameters of subpixel rendering vary depending on the resolution; failure to switch these parameters can cause screen distortion, black and white screens, and other abnormalities. Abnormalities in the ESD detection register generally manifest as black screens or screen distortion. The resolution adjustment function adjusts the number of pixels displayed on the screen; abnormalities in this function can cause image stretching, compression, or incomplete display. The frame rate adjustment function dynamically controls the number of times the screen refreshes per second. Abnormal frame rates may cause problems such as screen flickering, screen tearing, and screen glitches.

[0033] Table 1 For example, the status information of each function item can be determined by detecting the status of the switch corresponding to each function item. For instance, when the switch of a function item is turned on, it means that the corresponding function is turned on, that is, the status information is turned on; when the switch of a function item is turned off, it means that the corresponding function is turned off, that is, the status information is turned off.

[0034] Therefore, for all functional items, a state combination can be obtained based on the current state information. This state combination contains the state information of all functional items at a certain moment. Based on this state combination, it is possible to verify whether the screen display is abnormal.

[0035] For example, when an electronic device is powered on, the status information of each function item on the display can be obtained in real time, providing a basis for subsequent verification of whether the screen displays abnormalities.

[0036] In S120, this embodiment determines the CRC value based on the status information of each function item, without relying on the screen display, and can detect problems before the screen displays abnormal images, thus realizing preventive detection of the screen.

[0037] For example, the status information of each functional item can be input into the CRC value determination model, and the CRC value determination model can output a first CRC value. Here, the CRC determination model can be a deep learning model. The first CRC value can change based on changes in the status information of each functional item.

[0038] In S130, different status information corresponds to different reference CRC values. The reference CRC values ​​for each status information can be provided by the screen manufacturer. For example, when the screen leaves the factory, the DDIC manufacturer will calculate the reference CRC values ​​for each function item under different status information and store them in a designated area of ​​the electronic device. Subsequently, the reference CRC values ​​for each function item under different status information can be directly obtained from the designated area, providing a reliable data foundation for screen anomaly diagnosis.

[0039] For example, the reference CRC values ​​corresponding to each state information can also be determined during the operation of the electronic device. For instance, a stress test can be performed on the electronic device, and the reference CRC values ​​of each functional item under different state information can be determined based on the stress test scenario. This approach allows for the flexible design of more test scenarios and expands the scope of testing. For example, when a reference file list is not stored in a specified area, a reference table file can be generated during the operation of the electronic device.

[0040] For example, if the actually calculated first CRC value is different from the reference CRC corresponding to the current status information, it can be determined that the display screen is abnormal; if the actually calculated first CRC value is the same as the reference CRC corresponding to the current status information, it can be determined that the display screen is normal.

[0041] Since the CRC value is determined based on the status information of each function item, once a display screen malfunction is detected, it can be determined that the problem is caused by issues such as driver software or register access links, rather than image data problems. This narrows down the scope of troubleshooting. Moreover, the above detection process does not depend on the content displayed on the screen and can detect problems before the image is displayed, achieving preventative detection, improving display stability, and reducing the impact on users.

[0042] Figure 2 This is a flowchart of a screen anomaly detection method provided in an embodiment of this application. Figure 2 and Figure 1 The difference is that, Figure 1 S130 in the text can be further refined into Figure 2 S210-S230 in the middle.

[0043] S210. Obtain the reference table file. The reference table file is used to store the correspondence between the different status information of each function item and the reference CRC value.

[0044] Different reference CRC values ​​correspond to different scenarios, and different scenarios correspond to different status information of each functional item. For example, for ease of subsequent description, each status information of each functional item can be recorded as a scenario.

[0045] Table 2 provides an example of the status information and reference CRC values ​​for each function item in some scenarios. Here, we take three functions as an example: Gamma function, DSC function, and SPR function. Since Gamma is fixed for each chip, the changes mainly come from DSC and SPR. The difference between these two is the on and off states. Thus, we can obtain the following four scenarios and the reference CRC values ​​for each scenario.

[0046] Table 2 Table 3 provides an example of the status information and reference CRC values ​​for various functional items in some scenarios. Taking five functions as an example: DSC, SPR, resolution control, frame rate control, and Gamma. Since Gamma is fixed for each chip, the variations mainly originate from the DSC, SPR, resolution control, and frame rate control functions. This allows us to obtain the following scenarios and their corresponding reference CRC values. When the resolution function malfunctions, it typically manifests as screen tearing.

[0047] Table 3 For example, after the electronic device is powered on, it can read a reference table file from a designated area. If a table reference file exists in the designated area, it can be read directly. If a reference table file is not found in the designated area, it can be generated in real time during the operation of the electronic device. The specific generation process can be found in the following embodiments.

[0048] S220. Determine the target status information that matches the current status information of each function item from the reference table file.

[0049] To improve the accuracy of screen anomaly detection, it is necessary to accurately obtain the reference CRC value. To obtain an accurate CRC value, the scenario for the reference CRC value must be the same as that for the first CRC value; that is, the status information corresponding to each functional item must remain consistent. Therefore, in some embodiments, the current status information of each functional item can be compared with the status information of each functional item in a reference table file, and the reference CRC value with completely identical status information can be used as the reference CRC value corresponding to the first CRC value.

[0050] In some embodiments, it is assumed that the current status information of each function item is completely consistent with the status information corresponding to scenario 4 in Table 2, that is, both the DSC function and the SPR function are enabled. In this case, the CRC4 corresponding to scenario 4 can be used as the reference CRC value of the first CRC value.

[0051] In other embodiments, it is assumed that the current status information of each function item is as follows: Resolution=FHD, Frame Rate=60, DSC=Off, SPR=Off, which corresponds to Scenario 1 in Table 3. Therefore, CRC1 can be used as the reference CRC value for this scenario to perform screen anomaly diagnosis.

[0052] S230. Compare the first CRC value with the second CRC value corresponding to the target status information to obtain the abnormal detection result of the display screen.

[0053] The target status information here is the same as the current status information of each functional item in the reference table file. Taking Table 2 above as an example, the target status information is the status information of each functional item in scenario 4. At this time, the first CRC value can be compared with CRC4. If the first CRC value is the same as CRC4, it can be determined that the display is normal; otherwise, it can be determined that the display is abnormal.

[0054] This embodiment can first perform scene matching, that is, determine the scene that matches the current state information from the table file, and then select the corresponding CRC value as the reference CRC value corresponding to the current state information, thereby judging the abnormality of the display screen. This can ensure the accuracy of the reference CRC value and thus improve the accuracy of screen abnormality detection.

[0055] When the reference table file does not exist in the specified area Figure 3 An example flowchart is provided for a screen anomaly detection method. Figure 3 and Figure 2 The difference is that, Figure 2 S210 in the middle can be further refined into Figure 3 S310-S320 in the series.

[0056] S310. When the electronic device is powered on, record the status information of each function item corresponding to the target scenario and the CRC value corresponding to the target scenario when the electronic device executes the target scenario for the first time.

[0057] The table reference file generated during the operation of an electronic device is only valid for a period of time from when the electronic device is powered on to when it is powered off. When the electronic device is powered off and then powered on again, the table reference file needs to be regenerated.

[0058] For example, when an electronic device first runs to a certain scenario after being powered on, the status information of each functional item in that scenario can be recorded, and a CRC value can be calculated based on this status information as a reference CRC value for that scenario. The target scenario can be any scenario of each functional item. For example, multiple scenarios can be preset, and different scenarios can be randomly switched during the load testing of the electronic device. When the load test first runs to a certain scenario, the status information of each functional item can be recorded, and then the CRC value can be calculated.

[0059] For example, when an electronic device is powered on and a user opens application A for the first time, the status information for each function is: frame rate = 60, DSC = off, SPR = off. Based on this status information, a CRC value can be calculated as a reference CRC value for that scenario. This allows the generation of a reference table file, providing a data foundation for subsequent screen diagnostics.

[0060] S320. Store the status information of each functional item corresponding to the target scene and the corresponding CRC value to the initialization file to obtain the reference table file.

[0061] The initialization file can be a blank file. Each time the electronic device is powered on, it can initialize the reference table file obtained previously, or the reference table file can be cleared when the electronic device is powered off.

[0062] In this embodiment, during the actual operation of the device, the status information and corresponding CRC values ​​of each function item are obtained according to the scenario executed for the first time, and a reference table file is established for subsequent screen detection. This can improve the flexibility of the scenario and thus expand the detection range.

[0063] In some embodiments, the above-described S120 may include the following steps: The current status information of each function item is compared with the historical status information, which is the status information of each function item obtained last time. If the current status information of each function item is inconsistent with the historical status information, the first CRC value is determined based on the current status information of each function item.

[0064] Since this embodiment can monitor the status information of each function item in real time, that is, it can obtain multiple status combinations. In order to save computation and improve the efficiency of anomaly diagnosis, for example, the current status information obtained at the current moment can be compared with the historical status information obtained at the previous moment. If the current status information is inconsistent with the historical status information, the first CRC value can be calculated based on the current status information and the subsequent diagnosis process can be executed. If the current status information is consistent with the historical status information, it means that the abnormal status of the screen has not changed. Therefore, the anomaly diagnosis result at the previous moment can be maintained.

[0065] In other words, this embodiment only recalculates the CRC value when the current state information changes compared to the previous time. Otherwise, it maintains the abnormal diagnosis result of the previous time. This can save computing resources and improve the efficiency of abnormal diagnosis of the screen.

[0066] Figure 4 This is a flowchart of a screen anomaly detection method provided in an embodiment of this application. Figure 4 and Figure 1 The difference is that, Figure 1 S120 in the text can be further refined into Figure 4 S410-S430 in the series.

[0067] S410. Select at least two function items from the function items.

[0068] For example, two or more functional items can be randomly selected from the functional items, or at least two required functional items can be selected.

[0069] S420: Obtain the register values ​​corresponding to the current status information of at least two function items.

[0070] The status information of different functions can be represented by different register values. That is, each state combination corresponding to each function can be represented by a set of register values. For example, the DSC function corresponds to the DSC control register, the SPR function corresponds to the SPR register, and the Gamma function corresponds to the Gamma register.

[0071] For example, an electronic device can read the values ​​of the registers corresponding to each function item, providing a data basis for subsequent CRC value calculation.

[0072] For example, an electronic device can combine the read register values ​​in the order of the various functions to obtain a data block. Taking the DSC control register, SPR register, and Gamma register as an example, the following data block can be obtained: {[DSC control register value][SPR register value][Gamma register]}.

[0073] S430. Determine the first CRC value based on the register value.

[0074] For example, an electronic device can calculate the CRC value corresponding to the current scenario based on the register values ​​corresponding to each functional item. For example, For example, the first CRC value can be calculated based on the register values ​​corresponding to each function item, combined with a CRC algorithm. The CRC algorithm can be, for example, CRC-32, CRC-16, etc.

[0075] For example, the register values ​​corresponding to each function item can also be input into the deep learning model to obtain the CRC value corresponding to each register value.

[0076] Since the register values ​​are only tens to hundreds of bytes, the data volume is relatively small. Therefore, CRC values ​​can be quickly calculated based on the register values, improving the efficiency of subsequent anomaly detection. Moreover, once an anomaly is detected, it can be determined that it is a configuration error rather than an image data problem. This not only narrows down the scope of investigation but also allows for the detection of problems before abnormal images are displayed on the screen, achieving fast, accurate, and proactive screen anomaly diagnosis.

[0077] In some embodiments, the above-described S130 may include the following steps: If the first CRC value differs from the reference CRC value, the display is determined to be abnormal. The status information of the function item corresponding to the first CRC value is compared with the status information of the function item corresponding to the reference CRC value, and the abnormality type of the display screen is determined based on the comparison result. Output exception information, including exception type, current status information of each function item, and timestamp.

[0078] An exception type could be a CRC error, for example. For instance, when the first CRC value is inconsistent with the reference CRC value for the corresponding scenario, a display anomaly can be determined. In this case, the exception type can be further determined based on the status information of the functional items corresponding to the first CRC value and the status information of the functional items corresponding to the reference CRC value. For example, the status information of each functional item corresponding to the first CRC value can be compared with the status information of the functional item corresponding to the reference CRC value to determine which functional item(s) is abnormal, thus obtaining the exception type. For example, if the status information of a certain functional item is abnormal, the exception type can be determined to be a CRC error, or specifically, functional item A is abnormal.

[0079] For example, electronic devices can output information such as the type of error, the status combination of each function item, and timestamps, thereby improving the efficiency of troubleshooting and resolving problems for maintenance personnel.

[0080] In some embodiments, when an abnormality is determined to be in the display, a warning can be issued, for example, through indicator lights, voice prompts, or other means.

[0081] This embodiment does not limit the output method of the abnormal information. For example, the abnormal information can be output via voice, email, text, etc. In some embodiments, the abnormal information may also include the reference CRC value corresponding to the first CRC value. When the electronic device is subjected to load testing, the abnormal information may also include the test case ID corresponding to the load test, the duration of the load test, and other information.

[0082] If any abnormality is detected on the display screen during the stress test, the stress test must be stopped immediately, the current interface locked, and the abnormal situation preserved.

[0083] In practical applications, the above-mentioned screen anomaly detection method can be specifically applied to the data processing unit (DPU) in electronic devices. The DPU is part of the main control chip of the electronic device and mainly diagnoses whether the display screen is abnormal based on the CRC value. In addition to the main control chip, the electronic device also includes a display module, which includes a DDIC. The DPU communicates with the MIPI of the DDIC through the Mobile Industry Processor Interface (MIPI).

[0084] Figure 5 An exemplary structural schematic diagram of an electronic device is provided below, in conjunction with... Figure 5 The screen anomaly detection process of this application embodiment will be described.

[0085] like Figure 5 As shown, the electronic device includes a main control chip 501 and a display module 502. The main control chip 501 includes a data processor (DPU) 5011, and the display module 502 includes a DDIC 5021. In practical applications, the DDIC 5021 can read the status information of each function item and calculate the CRC value based on the status information of each function item. The DPU 5011 reads the actual CRC value of the current scene from the DDIC through the MIPI interface and compares the read actual CRC value with the reference CRC value corresponding to the current scene to diagnose whether the display screen is abnormal.

[0086] The following example demonstrates how to detect screen anomalies during stress testing: S610 and DPU perform load testing. In practical applications, load testing can be performed on various scenarios, such as frame rate switching, resolution switching, and simulated user scenarios, such as browsing web pages and switching between short videos. Typically, scenarios frequently encountered by users are included in the test items, corresponding to different states of each function.

[0087] S620: Read the calculated CRC value from DDIC.

[0088] S630: Compare the read CRC value with the reference CRC value for the corresponding scenario to determine if they are equal. If they are equal, return to S610 and continue testing in a different test scenario. If they are not equal, execute S640. In practical applications, the DPU creates a delayed work queue. When the state of each function item changes, the DPU schedules the delayed work queue, reads the CRC value for the corresponding scenario from the DDIC through the MIPI interface, and compares it with the reference CRC value for the corresponding scenario to obtain the anomaly diagnosis result.

[0089] S640: Record error codes, report exceptions, stop load testing, and lock the interface.

[0090] Specifically, after starting the load test, the test program continuously polls and checks for error codes reported by the underlying system in the background. During the execution of a specific test, if an error is reported at the underlying level, the test program will capture the error, immediately stop the test, and maintain the current error status and screen state, waiting for engineers to handle it. If no error codes are detected by the underlying system by the end of the specific test, the test passes. This testing process is fully automated; no human intervention is required from the start of the test until a screen anomaly is detected or the test ends.

[0091] Taking Table 3 above as an example, the DPU reads the actual CRC value calculated by DDIC through the MIPI interface, then obtains the status information of each function item and searches the reference table file. During the traversal, when it is determined that the current condition meets the conditions corresponding to any scenario in Table 3, such as the current scenario being Resolution=QHD, frame rate=60, DSC=off, and SPR=off, then it is equal to scenario identifier 2 in Table 3. Since this scenario condition already exists in Table 3, it means that this is not the first time this scenario has been encountered. Then, the actual CRC value read is compared with the CRC2 corresponding to scenario identifier 2. If the actual CRC value = CRC2, then the current detection scenario is passed. If the actual CRC value ≠ CRC2, then an anomaly is determined and the anomaly is reported to the layer application.

[0092] It should be noted that the screen anomaly detection method provided in this application embodiment can be executed by a screen anomaly detection device or a processing module within that device for executing the screen anomaly detection method. This application embodiment uses the execution of the screen anomaly detection method by a screen anomaly detection device as an example to illustrate the screen anomaly detection device provided in this application embodiment.

[0093] Figure 7 This is a schematic diagram of the structure of a screen anomaly detection device provided in an embodiment of this application.

[0094] like Figure 7 As shown, the screen anomaly detection device 700 may include: The acquisition module 701 is used to acquire the current status information of each function item of the display screen. Each function item corresponds to a function of the display screen. The function item includes at least two of the following: color and gamma processing function, image data compression function, sub-pixel rendering function, electrostatic discharge function, frame rate adjustment function, and resolution adjustment function. The determination module 702 is used to determine the first cyclic redundancy check (CRC) value based on the current status information of each functional item. The detection module 703 is used to compare the first CRC value with the reference CRC value to obtain the abnormal detection result of the display screen. The reference CRC value is the reference CRC value corresponding to the current status information.

[0095] This application embodiment acquires the status information of each function item of the display screen in real time, calculates the actual CRC value based on the status information of each function item, and compares it with the reference CRC value to obtain the anomaly detection result. The calculation of the CRC value is usually implemented by hardware and can be completed in microseconds, which is very fast, thus enabling rapid detection. Moreover, this application calculates the CRC value based on the status information of each function item. Once the screen display is abnormal, the CRC value will change drastically. Therefore, based on the CRC value, the display anomaly can be accurately identified.

[0096] In some possible implementations of the embodiments of this application, the determining module 702 is specifically used for: Select at least two functional items from the list of functional items; Obtain the register values ​​corresponding to the current status information of at least two function items; The first CRC value is determined based on the register value.

[0097] In some possible implementations of the embodiments of this application, the acquisition module 701 is further used to acquire a reference table file, which is used to store the correspondence between different status information of each functional item and reference CRC value; The determination module 702 is also used to determine the target state information that matches the current state information of each function item from the reference table file; Detection module 703 is specifically used for: The first CRC value is compared with the reference CRC value corresponding to the target status information to obtain the anomaly detection result of the display screen.

[0098] In some possible implementations of the embodiments of this application, the acquisition module 701 is specifically used for: When the electronic device is powered on, record the status information of each function item corresponding to the target scenario and the CRC value corresponding to the target scenario when the electronic device executes the target scenario for the first time; The status information of each functional item corresponding to the target scenario and the corresponding CRC value are stored in the initialization file to obtain the reference table file.

[0099] In some possible implementations of the embodiments of this application, the determining module 702 is specifically used for: The current status information of each function item is compared with the historical status information, which is the status information of each function item obtained last time. If the current status information of each function item is inconsistent with the historical status information, the first CRC value is determined based on the current status information of each function item.

[0100] In some possible implementations of the embodiments of this application, the detection module 703 is specifically used for: If the first CRC value differs from the reference CRC value, the display is determined to be abnormal. The status information of the function item corresponding to the first CRC value is compared with the status information of the function item corresponding to the reference CRC value, and the abnormality type of the display screen is determined based on the comparison result. Output exception information, including exception type, current status information of each function item, and timestamp.

[0101] The screen anomaly detection device in this application embodiment can be a device or a component in an electronic device, such as an integrated circuit or a chip. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.

[0102] The electronic device in this application embodiment can be a terminal with an operating system. The operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system.

[0103] The screen anomaly detection device provided in this application embodiment can achieve... Figures 1 to 6 The various processes in the screen anomaly detection method embodiments can achieve the same technical effect, and will not be described again here to avoid repetition.

[0104] like Figure 8 As shown, this application embodiment also provides an electronic device 800, including a processor 801 and a memory 802. The memory 802 stores programs or instructions that can run on the processor 801. When the program or instructions are executed by the processor 801, they implement the various steps of the above-described screen anomaly detection method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0105] It should be noted that the electronic devices in the embodiments of this application include the mobile terminals and non-mobile terminals mentioned above.

[0106] Figure 9 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application.

[0107] The electronic device 900 includes, but is not limited to, components such as: radio frequency unit 901, network module 902, audio output unit 903, input unit 904, sensor 905, display unit 906, user input unit 907, interface unit 908, memory 909, and processor 910.

[0108] Those skilled in the art will understand that the electronic device 900 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 910 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 9 The structure of the electronic device 900 shown does not constitute a limitation on the electronic device 900. The electronic device 900 may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0109] The processor 910 is used for: Obtain the current status information of each function item of the display screen. Each function item corresponds to a function of the display screen. The function items include at least two of the following: color and gamma processing function, image data compression function, sub-pixel rendering function, electrostatic discharge function, frame rate adjustment function, and resolution adjustment function. The first cyclic redundancy check (CRC) value is determined based on the current status information of each functional item; The first CRC value is compared with the reference CRC value to obtain the anomaly detection result of the display screen. The reference CRC value is the reference CRC value corresponding to the current status information.

[0110] This application embodiment acquires the status information of each function item of the display screen in real time, calculates the actual CRC value based on the status information of each function item, and compares it with the reference CRC value to obtain the anomaly detection result. The calculation of the CRC value is usually implemented by hardware and can be completed in microseconds, which is very fast, thus enabling rapid detection. Moreover, this application calculates the CRC value based on the status information of each function item. Once the screen display is abnormal, the CRC value will change drastically. Therefore, based on the CRC value, the display anomaly can be accurately identified.

[0111] In some possible implementations of embodiments of this application, the processor 910 is specifically used for: Select at least two functional items from the list of functional items; Obtain the register values ​​corresponding to the current status information of at least two function items; The first CRC value is determined based on the register value.

[0112] In some possible implementations of embodiments of this application, the processor 910 is specifically used for: Obtain the reference table file, which stores the correspondence between the different status information of each function item and the reference CRC value; Determine the target status information that matches the current status information of each function item from the reference table file; The first CRC value is compared with the reference CRC value corresponding to the target status information to obtain the anomaly detection result of the display screen.

[0113] In some possible implementations of embodiments of this application, the processor 910 is specifically used for: When the electronic device is powered on, record the status information of each function item corresponding to the target scenario and the CRC value corresponding to the target scenario when the electronic device executes the target scenario for the first time; The status information of each functional item corresponding to the target scenario and the corresponding CRC value are stored in the initialization file to obtain the reference table file.

[0114] In some possible implementations of embodiments of this application, the processor 910 is specifically used for: The current status information of each function item is compared with the historical status information, which is the status information of each function item obtained last time. If the current status information of each function item is inconsistent with the historical status information, the first CRC value is determined based on the current status information of each function item.

[0115] In some possible implementations of embodiments of this application, the processor 910 is specifically used for: If the first CRC value differs from the reference CRC value, the display is determined to be abnormal. The status information of the function item corresponding to the first CRC value is compared with the status information of the function item corresponding to the reference CRC value, and the abnormality type of the display screen is determined based on the comparison result. Output exception information, including exception type, current status information of each function item, and timestamp.

[0116] It should be understood that, in this embodiment, the input unit 904 may include a graphics processing unit (GPU) 9041 and a microphone 9042. The GPU 9041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 906 may include a display panel 9061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 907 includes at least one of a touch panel 9071 and other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.

[0117] The memory 909 can be used to store software programs and various data. The memory 909 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 909 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 909 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.

[0118] Processor 910 may include one or more processing units; optionally, processor 910 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 910.

[0119] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described screen anomaly detection method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.

[0120] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0121] This application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above-described screen anomaly detection method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0122] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0123] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described screen anomaly detection method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0124] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0125] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the related technology, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0126] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A method for detecting screen anomalies, characterized in that, include: Obtain the current status information of each function item of the display screen. Each function item corresponds to a function of the display screen. The function item includes at least two of the following: color and gamma processing function, image data compression function, sub-pixel rendering function, electrostatic discharge function, frame rate adjustment function, and resolution adjustment function. The first cyclic redundancy check (CRC) value is determined based on the current status information of each of the aforementioned functional items; The first CRC value is compared with the reference CRC value to obtain the anomaly detection result of the display screen, wherein the reference CRC value is the reference CRC value corresponding to the current status information.

2. The method according to claim 1, characterized in that, Determining the first cyclic redundancy check (CRC) value based on the current status information of each of the aforementioned functional items includes: Select at least two functional items from each of the aforementioned functional items; Obtain the register values ​​corresponding to the current status information of the at least two functional items; The first CRC value is determined based on the register value.

3. The method according to claim 1, characterized in that, The step of comparing the first CRC value with the reference CRC value to obtain the anomaly detection result of the display screen includes: Obtain a reference table file, which is used to store the correspondence between different status information of each functional item and reference CRC values; Determine the target state information that matches the current state information of each of the aforementioned functional items from the reference table file; The first CRC value is compared with the reference CRC value corresponding to the target status information to obtain the anomaly detection result of the display screen.

4. The method according to claim 3, characterized in that, The process of obtaining the reference table file includes: When the electronic device is powered on, record the status information of each function item corresponding to the target scenario and the CRC value corresponding to the target scenario when the electronic device executes the target scenario for the first time; The status information of each functional item corresponding to the target scenario and the corresponding CRC value are stored in the initialization file to obtain the reference table file.

5. The method according to any one of claims 1-4, characterized in that, Determining the first cyclic redundancy check (CRC) value based on the current status information of each of the aforementioned functional items includes: The current status information of each of the aforementioned functional items is compared with the historical status information, wherein the historical status information is the status information of each of the aforementioned functional items obtained in the last time; If the current status information of each of the aforementioned functional items is inconsistent with the historical status information, a first CRC value is determined based on the current status information of each of the aforementioned functional items.

6. The method according to any one of claims 1-4, characterized in that, The step of comparing the first CRC value with the reference CRC value to obtain the anomaly detection result of the display screen includes: If the first CRC value is different from the reference CRC value, the display screen is determined to be abnormal. The status information of the function item corresponding to the first CRC value is compared with the status information of the function item corresponding to the reference CRC value, and the abnormality type of the display screen is determined based on the comparison result. Output exception information, which includes exception type, current status information of each function item, and timestamp.

7. A screen anomaly detection device, characterized in that, include: The acquisition module is used to acquire the current status information of each function item of the display screen. Each function item corresponds to a function of the display screen. The function item includes at least two of the following: color and gamma processing function, image data compression function, sub-pixel rendering function, electrostatic discharge function, frame rate adjustment function, and resolution adjustment function. The determining module is used to determine the first cyclic redundancy check (CRC) value based on the current status information of each of the aforementioned functional items; The detection module is used to compare the first CRC value with the reference CRC value to obtain the anomaly detection result of the display screen, wherein the reference CRC value is the reference CRC value corresponding to the current status information.

8. The apparatus according to claim 7, characterized in that, The determining module is specifically used for: Select at least two functional items from each of the aforementioned functional items; Obtain the register values ​​corresponding to the current status information of the at least two functional items; The first CRC value is determined based on the register value.

9. The apparatus according to claim 7, characterized in that, The acquisition module is also used to acquire a reference table file, which is used to store the correspondence between different status information of each functional item and reference CRC value; The determining module is further configured to determine target state information that matches the current state information of each of the functional items from the reference table file; The detection module is specifically used for: The first CRC value is compared with the reference CRC value corresponding to the target status information to obtain the anomaly detection result of the display screen.

10. The apparatus according to claim 9, characterized in that, The acquisition module is specifically used for: When the electronic device is powered on, record the status information of each function item corresponding to the target scenario and the CRC value corresponding to the target scenario when the electronic device executes the target scenario for the first time; The status information of each functional item corresponding to the target scenario and the corresponding CRC value are stored in the initialization file to obtain the reference table file.

11. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory storing programs or instructions that can run on the processor, the programs or instructions being executed by the processor to implement the steps of the method as described in any one of claims 1-6.