A data processing method and related device

By detecting the screen-on operation in the OLED display device, the location of the data error is determined by using the last written sector address and the backup data is used to repair it. This solves the problem of data storage anomalies caused by abnormal power outages, and improves the data repair efficiency and the recovery speed of the aging compensation function.

CN120276698BActive Publication Date: 2026-05-29HONOR DEVICE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2023-12-29
Publication Date
2026-05-29

Smart Images

  • Figure CN120276698B_ABST
    Figure CN120276698B_ABST
Patent Text Reader

Abstract

The application provides a data processing method and related equipment. According to the method, a first device detects a first operation on the first device, the first operation being used to trigger the display screen of the first device to turn on; the first device acquires data of N sectors, the data of the N sectors corresponding to display data when the display screen of different areas is turned on, N being a positive integer; in the case where it is detected that there is an error in the data of the N sectors, the first device determines the position of the error data by reading the sector address of the last written data; and the first device repairs the error data by using backup data corresponding to the sector address. The method can determine the sector position where the data has an error by using the address information of the last read sector, and can repair the data according to the corresponding backup data, so that the time for searching for the data error position by traversing all sectors can be saved, and the data repair efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to a data processing method and related equipment. Background Technology

[0002] Organic light-emitting diode (OLED) displays are widely used in mobile phones, tablets, wearable devices, and other terminal devices. De-burn-in compensation can solve the problem of screen burn-in caused by OLED devices aging due to prolonged use. The effectiveness of de-burn-in compensation depends on the aging curve of the OLED device and user screen-on data. Since user screen-on data for de-burn-in compensation needs to be continuously accumulated, a large amount of user screen-on data needs to be recorded in non-volatile memory. If the terminal experiences an abnormal power outage, it will cause data storage anomalies. Because current processors and memory do not have the ability to directly repair data, and the stored user screen-on data plays a crucial role in the implementation of de-burn-in compensation, currently, when the stored user screen-on data is abnormal, all storage areas are traversed until the storage area corresponding to the erroneous data is found, and data repair is performed using backup data. However, this type of data repair scheme takes a long time and has low data repair efficiency.

[0003] Therefore, improving the efficiency of data repair is an urgent problem to be solved. Summary of the Invention

[0004] This application provides a data processing method and related equipment. According to the data processing method, a first device detects a first operation performed on itself, the first operation triggering the display screen of the first device to light up; the first device acquires data from N sectors, the data from the N sectors corresponding to display data when different areas of the display screen are lit, where N is a positive integer; if an error is detected in the data of the N sectors, the first device determines the location of the data error by reading the address of the sector where the data was last written; the first device repairs the erroneous data using the backup data corresponding to the sector address. This method can determine the location of the sector with the data error by using the address information of the last read sector, and can repair the data based on the corresponding backup data, thus saving the time of traversing all sector data and improving the efficiency of data repair.

[0005] Firstly, this application provides a data processing method. This method can be applied to a first device. The method may include: the first device detecting a first operation on itself, the first operation triggering the display screen of the first device to light up; the first device acquiring data from N sectors, where the data from the N sectors correspond to display data for different areas of the display screen when lit up, and N is a positive integer; if errors are detected in the data of the N sectors, the first device determines the location of the data error by reading the sector address of the last written data; and the first device repairs the erroneous data using backup data corresponding to the sector address.

[0006] In the solution provided in this application, since the display data of the aging compensation display needs to be continuously accumulated when it is lit, the data needs to be written to non-volatile memory. During data storage, an abnormal power outage can easily cause data corruption. Currently, since the processor and memory themselves do not have the ability to directly repair data, data backup and repair are crucial for the implementation of the aging compensation function. When the first device detects the user's first operation, it can acquire and detect whether there are errors in the data of N sectors. If errors are found, it is not necessary to traverse each sector. Therefore, it is not necessary to spend 1-Nms (for example, if there are N sectors, traversing each sector takes about 1ms, for a total of Nms) to find the sector with data errors. The location of the sector with data errors can be determined based on the address information of the last read sector, and data repair can be performed based on the corresponding backup data, thereby saving time ranging from 1ms to Nms and improving repair efficiency.

[0007] It is understood that the first device can be the electronic device in this application, or it can be the electronic device 100 in this application.

[0008] In some embodiments of this application, the method further includes: a first device cyclically writing data to N sectors through N+M sectors, wherein the data in the (i+1)th sector is the backup data corresponding to the i-th sector being written, i < N, M ≤ N. In this embodiment, M sectors are used as data backup space corresponding to the sectors with stored data, so that if data storage errors are subsequently caused by power outages or other privacy-related issues, the erroneous data can be repaired based on the backup data, thereby improving the efficiency of data repair.

[0009] In some embodiments of this application, the method further includes: among the N sectors, after the i-th sector has finished writing data and before the (i+1)-th sector has finished writing data, the first device reads the address information of the (i+1)-th sector. In this embodiment, the address information of the next sector can be read after the data in the current sector has finished writing. This way, if a data write error occurs in the memory due to factors such as power failure, the location of the erroneous data can be determined based on the address information of the last read sector, thereby reducing the time spent traversing each sector and reducing the time spent detecting the location of the data error.

[0010] In some embodiments of this application, reading the address information of the (i+1)th sector includes: a preset time interval is placed between writing data to the ith sector and writing data to the (i+1)th sector within the N sectors; the first device reads the address information of the (i+1)th sector within this preset time interval. In this embodiment, the data written to the N sectors can be written at a certain writing frequency, for example, the storage time between two adjacent sectors in the N sectors can be spaced apart by a preset time interval. This embodiment can read the address information of the next sector (the sector about to be written to) within each preset time interval. It can be understood that by following the data writing frequency (e.g., using 80ms to store data in each sector) and utilizing the time interval within that frequency to read the address information of the sector about to be written to, it is possible to determine the location of the erroneous data by using the address information of the last read sector when the first operation is detected, thus reducing the time spent traversing each sector and reducing the time spent detecting the location of the data error.

[0011] In some embodiments of this application, the first device determines the location of the data error by reading the sector address of the last written data, including: the first device determines the sector address of the last written data based on the address information of the (i+1)th sector read; the first device determines the location of the data error by reading the sector address of the last written data.

[0012] In some embodiments of this application, the first device uses backup data corresponding to the sector address to repair erroneous data, which includes: the first device determining the backup data corresponding to the sector based on the sector address of the last written data; and the first device using the backup data corresponding to the sector address to repair erroneous data.

[0013] In some embodiments of this application, when errors are detected in N sectors of data, the first device determines the location of the data error by reading the sector address of the last written data. This includes: when the first device's integrated processor detects errors in N sectors of data, sending the sector address of the last written data to the first device's display driver integrated circuit (DDIC); enabling and facilitating communication between the DDIC and the first device's flash memory; determining the location of the data error based on the sector address of the last written data; and repairing the erroneous data using the backup data corresponding to the sector address. This includes: the DDIC repairing the erroneous data in the flash memory using the corresponding backup data based on the location of the data error.

[0014] In some embodiments of this application, when errors are detected in N sectors, the first device determines the location of the data error by reading the sector address of the last written data. This includes: when errors are detected in N sectors and the number of sectors with erroneous data is 1, the first device determines the location of the data error by reading the sector address of the last written data.

[0015] In some embodiments of this application, the display data includes one or more of the following: display screen illumination time, brightness, grayscale, image quality, temperature, and frame rate.

[0016] In some embodiments of this application, the method further includes: a first device using the repaired data to perform aging compensation and perform screen lighting.

[0017] In some embodiments of this application, the first device uses the repaired data to perform aging compensation and activate the display screen, including: the first device calculating the corresponding compensation gain for the display data; and the first device outputting the corresponding compensation target brightness of the display screen according to the compensation gain.

[0018] In some embodiments of this application, the method further includes: when it is detected that there are no errors in the data of N sectors, the first device uses the data of N sectors to perform aging compensation and performs screen lighting.

[0019] As you can understand, the relevant descriptions of the above implementation methods can also be found in the following text.

[0020] Secondly, this application provides an electronic device. The electronic device may include a display screen, a memory, and one or more processors. The memory stores a computer program. The processor invokes the computer program, causing the electronic device to perform: detecting a first operation on a first device, the first operation triggering the display screen of the first device to light up; acquiring data from N sectors, where the data from the N sectors corresponds to display data for different areas of the display screen when lit, and N is a positive integer; if an error is detected in the data of the N sectors, determining the location of the data error by reading the sector address of the last written data; and repairing the erroneous data using backup data corresponding to the sector address.

[0021] In conjunction with the second aspect, in one possible implementation, the processor is used to call a computer program to cause the electronic device to perform: writing data to N sectors in a loop through N+M sectors, where the data in the (i+1)th sector is the backup data corresponding to the i-th sector being written, i < N, M ≤ N.

[0022] In conjunction with the second aspect, in one possible implementation, the processor, when invoking a computer program to cause the electronic device to execute: among the N sectors, after the current i-th sector has finished writing data and before the i+1-th sector has finished writing data, the first device reads the address information of the current i+1-th sector.

[0023] In conjunction with the second aspect, in one possible implementation, the processor calls a computer program to cause the electronic device to read the address information of the current (i+1)th sector. Specifically, it executes the following: among N sectors, there is a preset time interval between writing data in the i-th sector and writing data in the (i+1)-th sector, and the address information of the (i+1)-th sector is read within the preset time interval.

[0024] In conjunction with the second aspect, in one possible implementation, the processor calls a computer program to cause the electronic device to determine the location of the data error by reading the sector address of the last written data. Specifically, the processor performs the following: determining the sector address of the last written data based on the address information of the current (i+1)th sector; and determining the location of the data error using the sector address of the last written data.

[0025] In conjunction with the second aspect, in one possible implementation, the processor calls a computer program to cause the electronic device to perform data repair using backup data corresponding to the sector address. Specifically, the processor performs the following: determining the backup data corresponding to the sector based on the sector address of the last written data; and repairing the erroneous data using the backup data corresponding to the sector address.

[0026] In conjunction with the second aspect, in one possible implementation, the processor, when invoking a computer program to cause the electronic device to determine the location of the data error by reading the sector address of the last written data in the case of detecting errors in N sectors of data, specifically executes the following: upon detecting errors in N sectors of data, the processor sends the sector address of the last written data to the DDIC; the DDIC enables and performs communication handshake with the flash memory; the DDIC determines the location of the data error based on the sector address of the last written data; and the erroneous data is repaired using the backup data corresponding to the sector address. Specifically, the DDIC repairs the erroneous data in the flash memory using the corresponding backup data based on the location of the data error.

[0027] In conjunction with the second aspect, in one possible implementation, the processor, when invoking a computer program, causes the electronic device to determine the location of the data error by reading the address of the last written data when N sectors of data errors are detected. Specifically, if N sectors of data errors are detected, and the number of sectors with erroneous data is 1, the location of the data error is determined by reading the address of the last written data. In conjunction with the second aspect, in one possible implementation, the display data includes one or more of the following: display screen up time, brightness, grayscale, image quality, temperature, and frame rate.

[0028] In conjunction with the second aspect, in one possible implementation, the processor is used to call a computer program to cause the electronic device to perform: aging compensation using the repaired data and to turn on the display screen.

[0029] In conjunction with the second aspect, in one possible implementation, the processor calls a computer program to cause the electronic device to perform aging compensation using the repaired data and to turn on the display screen. Specifically, the processor performs the following: calculates the corresponding compensation gain for the display data; and outputs the corresponding compensation target brightness of the display screen based on the compensation gain.

[0030] In conjunction with the second aspect, in one possible implementation, the processor is used to call a computer program to cause the electronic device to perform: if it detects that there are no errors in the data of N sectors, it uses the data of N sectors to perform aging compensation and performs screen lighting.

[0031] Thirdly, this application provides a computer storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform any of the possible implementations of the first aspect described above.

[0032] Fourthly, embodiments of this application provide a chip that can be applied to an electronic device. The chip includes one or more processors, which are used to invoke computer instructions to cause the electronic device to execute any of the possible implementations in the first aspect described above.

[0033] Fifthly, embodiments of this application provide a computer program product containing instructions that, when the computer program product is run on an electronic device, cause the electronic device to execute any of the possible implementations of the first aspect described above.

[0034] It is understood that the electronic device provided in the second aspect, the computer storage medium provided in the third aspect, the chip provided in the fourth aspect, and the computer program product provided in the fifth aspect are all used to execute any possible implementation of the first aspect. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects of any possible implementation of the first aspect, which will not be repeated here. Attached Figure Description

[0035] Figure 1 A flowchart illustrating a data processing method provided in an embodiment of this application;

[0036] Figure 2 This is a schematic diagram of data writing provided in an embodiment of this application;

[0037] Figure 3 This is a schematic diagram illustrating the reading of sector address information provided in an embodiment of this application.

[0038] Figure 4 A schematic diagram of an aging compensation curve provided in an embodiment of this application;

[0039] Figure 5 A flowchart illustrating another data processing method provided in an embodiment of this application;

[0040] Figure 6 A flowchart illustrating another data processing method provided in an embodiment of this application;

[0041] Figure 7 This is a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of this application. Detailed Implementation

[0042] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0043] It should be understood that the terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0044] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this application can be combined with other embodiments.

[0045] First, some of the terms and related technologies used in this application will be explained to facilitate understanding by those skilled in the art.

[0046] 1. Organic light-emitting diode (OLED) display screen

[0047] More and more electronic devices are adopting OLED displays based on the self-emissive principle. OLED displays are composed of many pixels, each of which emits light independently without interfering with each other. OLED displays are current-driven light-emitting devices, and their brightness is basically proportional to the current flowing through them.

[0048] OLED display technology differs from traditional liquid crystal displays (LCDs) in that it does not require a backlight. Instead, it uses a very thin coating of organic material and a glass substrate (or a flexible organic substrate). When an electric current passes through it, these organic materials emit light. This process of exciting the organic materials in an OLED screen with electric current induces aging of the organic materials. As a result, under the same driving current, the brightness produced by the luminescent material is lower than its pre-aging state, and the higher the current, the faster the aging process.

[0049] During daily use, the displayed content exhibits varying shades of color (high and low grayscale) and brightness. At the hardware level, this can be controlled by the amount of current; higher current results in a brighter screen, while lower current leads to a dimmer screen. Therefore, on the same screen, over long-term use, the cumulative brightness of displayed content in different areas will differ. For example, if the same application is frequently used, some areas will have a higher average brightness than others. These areas with higher cumulative brightness have a higher average current, causing the luminescent materials to age faster. Because the screen display content is derived from the raw data transmitted from the entire device, in a uniform display, the raw data of each pixel area is consistent. The resulting effect is that areas that age faster will have lower brightness than other areas when displaying a uniform image. If the difference in the degree of aging of the luminescent materials between areas is large enough, brightness differences will also appear in some uneven images; this phenomenon is called screen burn-in.

[0050] 2. Deburnin technology

[0051] A common method for addressing the aging of OLED screen's light-emitting materials is content compensation. This involves using a known aging curve (the relationship between aging degree and time) of the material. By collecting real-time data on the display content of different areas of the screen and accumulating brightness values, these values ​​are input into the aging curve to determine the aging degree (percentage degradation) of each area. When the screen displays different brightness levels, a certain brightness compensation is applied to that area to restore its original brightness; alternatively, the brightness of surrounding content is lowered to match the degradation level. The overall compensation effect of this method is to reduce image retention caused by aging differences; this technique is often referred to as deburning technology.

[0052] 3. Display driver integrated circuit (DDIC)

[0053] A driver IC is an integrated circuit chip that controls the switching and display mode of a liquid crystal panel and an active-matrix organic light-emitting diode (AMOLED) panel. The driver IC is one of the main control components of the panel, often referred to as the "brain" of the panel. Its main function is to send drive signals and data to the display panel in the form of electrical signals, controlling the screen's brightness and color to display image information such as letters and pictures.

[0054] For OLED DDICs, the primary function is to control the OLED display panel. It needs to work in conjunction with the OLED display to achieve thinness, flexibility, and foldability, while providing a wide color gamut and high-fidelity display signal. DDICs drive the display panel and transmit video data via electrical signals.

[0055] Currently, OLED displays are widely used in mobile phones, tablets, wearable devices, and other terminal devices. De-burn-in can solve the problem of persistent image retention and screen burn-in caused by inconsistent aging levels of sub-pixels due to prolonged use. The effectiveness of de-burn-in depends on the aging curve of the OLED device and user screen-on data. Since user screen-on data for de-burn-in needs to be continuously accumulated, a large amount of user screen-on data needs to be written to non-volatile memory. If the terminal experiences an abnormal power outage, it will cause data storage anomalies. Because current processors and memory do not have the ability to directly repair data, and the stored user screen-on data plays a crucial role in the implementation of de-burn-in, the following are possible technical solutions for data repair in case of data storage anomalies:

[0056] To ensure the aging compensation effect achieves the expected results, the processor in the terminal device can check whether the user screen-on data related to aging compensation is normal before each screen-on. The general detection process is as follows: First, the processor powers on and sends initialization code to the DDIC. The DDIC reloads the data from the flash memory. The DDIC determines whether the data is erroneous and sends the error flag value to the processor. The processor reads the error flag value from the DDIC to determine whether the user screen-on data related to aging compensation is normal. If the relevant data is found to be abnormal, it can traverse and check each sector one by one according to the multiple storage data sector addresses sent by the processor and send the check result of each sector to the processor until the sector with erroneous data is found.

[0057] The aforementioned solution, when the stored user screen data is abnormal, traverses all storage areas until the storage area corresponding to the erroneous data is found, and then uses backup data to repair the data. However, this type of data repair solution is time-consuming and has low data repair efficiency. Therefore, improving the efficiency of data repair is an urgent problem to be solved.

[0058] In view of this, this application provides a data processing method. When a first device detects a user's operation that triggers the screen of the first device to light up, it acquires data from N sectors. If errors are detected in the data of the N sectors, the first device determines the location of the data error by using the sector address of the last read data and repairs the erroneous data using the backup data corresponding to the sector address. Unlike traversing all storage areas until the storage area corresponding to the erroneous data is found, this application embodiment can determine the location of the data error based on the last read write-back sector address and repair the problematic data using backup data. Therefore, it can save the time of traversing all sector data and improve the efficiency of data repair.

[0059] The electronic device in this application embodiment can be an electronic device equipped with a display screen. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, vehicle terminal, wearable device, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), personal computer (PC), television set (TV), ATM, or self-service machine, etc., and this application embodiment does not impose specific limitations. For example, the display screen can be an OLED display screen, or other types of display screens, and this application embodiment does not impose specific limitations.

[0060] The data processing method provided in this application can be executed by the aforementioned electronic device, or by a functional module and / or functional entity within that electronic device capable of implementing the data processing method. Furthermore, the solution in this application can be implemented through hardware and / or software, the specific implementation depending on actual usage requirements, and this application does not impose any limitations. The following description uses an electronic device as an example, along with the accompanying drawings, to exemplarily illustrate the data processing method provided in this application.

[0061] The following describes a data processing method provided by an embodiment of this application.

[0062] Please see Figure 1 , Figure 1A flowchart illustrating a data processing method provided in an embodiment of this application. This method may include, but is not limited to, the following steps:

[0063] S101: The first device detects a first operation on the first device to trigger the display screen of the first device to light up.

[0064] The user can perform a first operation on the first device. For example, the user can turn on the display by pressing the power button on the display; or, the user can turn on the display by pressing the screen-on button on the display. Another example is that the user can turn on the display by pressing the screen-on button on the remote control corresponding to the display.

[0065] In this embodiment, the display screen can be an OLED display screen, and the first device can be an electronic device equipped with an OLED display screen. For example, the first device may include an OLED module, and the OLED module includes an OLED display screen. It is understood that the display screen can also be other types of display screens, and this embodiment does not limit the type of display screen.

[0066] S102: The first device acquires data from N sectors.

[0067] When a first operation on the first device is detected, the first device can acquire data from N sectors. The data from these N sectors can correspond to the display data when different areas of the display screen are lit. A sector can be understood as a space / area for writing / storing display data, and each of the N sectors can correspond to the display data when a certain area of ​​the first device's display screen is lit.

[0068] Display data may include one or more of the following: display up time, brightness, grayscale, image quality, temperature, and frame rate. For example, display data may include the display up time, such as the current usage duration of a specified application. The specified application can be determined through big data analytics and may include frequently used instant messaging applications, short video applications, game applications, and live streaming applications. The current usage duration may refer to the duration of the specified application's use on the first device from the time the specified application is installed until the current moment. The specified usage duration can be a single duration value or a duration range. The specified application may be a single application or multiple applications. For example, display data may include image information directly reflecting a deterioration in display quality, such as a current measurement image of the first device's display. The first device's display shows an image with specified color channels (e.g., red (R) channel, green (G) channel, blue (B) channel, and white (W) channel), denoted as an RGBW image.

[0069] Since the display data of the aging-compensated display needs to be continuously accumulated when it is turned on, the data can be written to non-volatile memory. For example, the display module can generally use flash memory. This embodiment uses flash memory as an example for illustration. It can be understood that non-volatile memory can also be other types of memory. This embodiment does not limit the type of non-volatile memory. Possible implementation methods for obtaining data from N sectors are as follows:

[0070] One possible implementation is to reload the display data for different areas of the display screen when it is lit from N sectors of the flash memory, thereby obtaining the data of N sectors. Optionally, a status bit can be used to indicate whether the reloading is complete, for example, 0 indicates that the reloading has not been completed or is in progress, and 1 indicates that the reloading is complete.

[0071] Another possible implementation involves first reloading the display data (written in N sectors) from the flash memory to random access memory (RAM), also known as main memory, which is an internal memory that directly exchanges data with the main processor (such as the central processing unit (CPU) or application processor (AP)). Then, the display data for the different areas of the screen when they are lit is read from the RAM, thus obtaining the data for the N sectors. Optionally, a status bit can be used to indicate whether the reloading is complete; for example, 0 indicates that the reloading has not been completed or is in progress, and 1 indicates that the reloading is complete.

[0072] Understandably, before the user performs the first operation on the first device, during the screen-on process, the first device can cyclically write data to N sectors using N+M sectors, where the data in the (i+1)th sector is the backup data of the ith sector currently being written, and M≤N. For example, M=1, meaning that an additional sector can be used as backup data for the sector currently storing data.

[0073] The data from N sectors can correspond to the display data when the display screen in different areas is lit up, where N is a positive integer.

[0074] Since the display data for aging compensation needs to be continuously accumulated when the display is lit, the data must be written to non-volatile memory. During the data writing process, an abnormal power outage can easily cause data corruption. Currently, because the processor and memory themselves do not have the ability to directly repair data, data backup and repair during the data writing process are crucial for the successful implementation of the aging compensation function.

[0075] For an example of a possible implementation of data writing and backup, please refer to [link to relevant documentation]. Figure 2 , Figure 2 This is a schematic diagram illustrating data writing as provided in an embodiment of this application. Figure 2 As shown, taking M=1 as an example, for a data volume of N sectors, such as the display data when the screen in different areas is lit, each sector can use the space of N+1 sectors for writing, where the data in the (i+1)th sector is the backup data corresponding to the i-th sector being written. A circular writing scheme can be adopted to ensure that there is always a backup of the sector being written to. Figure 2 Taking N=7 as an example, we can illustrate how to write data from 7 sectors using 8 sectors, with the extra sector reserved as backup data for the sector being written. For example, if the data in S1-S7 has been initialized, or if S1-S7 has already been written in the first round (all are 0), a new round of data writing begins, such as S1(2). At this time, S1 is the backup data for S1(2). Continue writing data in sector S2(2), at this time S2 is the backup data for S2(2), ..., continue writing data in sector S7(2), at this time S7 is the backup data for S7(2). This allows for cyclic data writing, and there is always a sector of data as backup data for the sector being written.

[0076] For N sectors, after writing data to the i-th sector and before writing data to the (i+1)-th sector, the first device can read the address information of the (i+1)-th sector. For example, a preset time interval exists between writing data to the i-th sector and writing data to the (i+1)-th sector. The first device writes the address information of the (i+1)-th sector according to this preset time, where i < N. It is understood that the duration of each preset time interval can be the same or different, or the first device can start writing data to the (i+1)-th sector immediately after reading its address information. The address information of the sector can include the sector's identifier, ID, or other information.

[0077] One possible implementation is that the first device can write data to each sector at a preset frequency, for example, writing data to one sector every 2 seconds. If the writing time for each sector is only 80ms, then there is a 1.2s idle time between two adjacent sectors. Therefore, the address information of the (i+1)th sector can be read within this 1.2s idle time, making reasonable use of the idle time to read the sector's address information without affecting the sector writing time. Furthermore, if erroneous data is detected in N sectors, the location of the data error can be determined based on the last read address information. Thus, data repair efficiency can be improved without affecting the writing efficiency.

[0078] For example, please refer to Figure 3 , Figure 3 This is a schematic diagram illustrating the writing of address information to a sector, as provided in an embodiment of this application. Figure 3 As shown, an example is given with a data writing time of 80ms per sector and a 1s interval between adjacent sector writes. Specifically, the data writing time for sector S1 is 80ms. After a 1s interval, data writing for sector S2 continues, followed by sector S3, and so on. After a 1s interval, data writing for sector Si continues, followed by sector Si+1, and so on, until data is written for sector SN. Within the preset time interval between writes between two adjacent sectors, the address information of the next sector (the sector about to be written) can be read.

[0079] It is understandable that the address information of the sector to be written can be read according to the preset time interval in the data writing frequency. When the first operation is detected (the display is powered on again), if errors are detected in the data of N sectors, the location of the erroneous data can be determined by the address information of the last sector read, and the corresponding backup data can be used to repair it.

[0080] S103: Determine if there are any errors in the data of N sectors. If yes, proceed to steps S104 and S105. If no, proceed to step S105.

[0081] Before the display screen is turned on, aging compensation is performed on the screen data. To ensure that the aging compensation achieves the desired effect, the aging compensation-related screen data and status can be checked before each screen turn-on. The testing process can be as follows:

[0082] After obtaining data from N sectors, we can determine whether there are errors in the data of each of the N sectors. If there is erroneous data in the N sectors, we can record an error flag. Based on the error flag, we can determine the number of sectors with erroneous data. For example, we can check each sector twice (such as at the beginning and end of the sector). If an error is detected both times, the error flag can be 2. If an error is detected in either of the two checks, the error flag can be 1. Both indicate that there is erroneous data in the sector. That is, an error flag of 1 or 2 can indicate that there is 1 sector with erroneous data.

[0083] One possible implementation is that if the number of erroneous data sectors is 0, step S105 can be executed; if the number of erroneous data sectors is 1, steps S104 and S105 can be executed; if the number of erroneous data sectors is greater than 1, the location of the data error can be left unsearched and the aging compensation process can be turned off, and the display screen can be turned on directly. It is understandable that the display screen may have poor display effect if it is turned on without the aging compensation process, for example, if the display screen is aging.

[0084] S104: The first device determines the location of the data error by reading the sector address of the last written data, and repairs the erroneous data using the backup data corresponding to the sector address.

[0085] If the first device detects errors in N sectors, it can determine the location of the data error by reading the address of the last sector where data was written. For example, if the i-th sector has finished writing data, and the address information of the (i+1)-th sector is read, and a power outage or other cause occurs during the preparation or writing process of the (i+1)-th sector, then the address information of the (i+1)-th sector, already read, can be used to determine that the data in the (i+1)-th sector is corrupted. Therefore, this embodiment can quickly identify the sector with the data error using the last read sector address, and can use the backup data corresponding to that sector address to repair the erroneous data. Specifically, the first device determines the backup data corresponding to the sector based on the sector address and uses the backup data to repair the erroneous data, such as erasing the data in the sector and rewriting the backup data, thus completing the data update and replacement.

[0086] S105: The first device performs aging compensation based on data from N sectors and then activates the display screen.

[0087] In step S103 above, if errors are detected in the data of N sectors, the first device can use the data repaired in step S104 to perform aging compensation and activate the display screen.

[0088] In step S103 above, if no errors are detected in the data of N sectors, the first device can use the data of N sectors for aging compensation and perform screen lighting.

[0089] Due to the inherent characteristics of display modules, after a certain period of use, the display module of the first device will gradually age, leading to abnormal display effects. Furthermore, prolonged use of a display showing a fixed image can easily damage the display module, causing image retention and deteriorating the display quality. For example, if the first device is a mobile phone, prolonged use of certain applications will degrade the phone's display. For instance, as the number of pixels per unit area increases, the smaller pixel area leads to brightness decay and color distortion. Similarly, for foldable phones, the different display frequencies of full-screen and half-screen displays can cause uneven brightness on the left and right sides. Also, prolonged use of certain applications with smaller grayscale backgrounds can also result in image retention. Therefore, when the first device detects the user's initial action, deburning can be performed on the screen-on data (such as the display data mentioned in the text) before the screen is turned on.

[0090] The first device uses display data from when the display is lit to perform aging compensation and then executes the display lighting. Specifically, it first calculates the corresponding compensation gain for display data such as time, brightness, grayscale, image quality, temperature, and frame rate, for example, by using a lookup table. The compensation gain is then adjusted by gamma to output the corresponding compensation target brightness. It is understood that different compensation models can be used for different luminescent materials or different panel designs, which is a common practice well-known to those skilled in the art, and therefore will not be elaborated further.

[0091] For the target brightness of the compensation, please refer to Figure 4 , Figure 4 This is a schematic diagram of an aging compensation curve provided in an embodiment of this application. Figure 4 As shown, line A corresponds to the initial brightness. Taking the two display areas of the screen as an example, area B can be a weak aging area, and area C can be a strong aging area. For example, they are divided into the following three different types:

[0092] Method ①: Brighten the brightness of both areas B and C to their corresponding initial brightness.

[0093] Method 2: Brighten the area C to the level of area B.

[0094] Method 3: Reduce the brightness of area B to that of area C.

[0095] The purpose of all three methods is to maintain consistent brightness across the display area. In practice, the screen can be divided into different blocks for compensation, with the brightness value of one block selected as the target value for compensation, or the entire screen compensated to its initial brightness.

[0096] In this embodiment, the first device does not need to traverse every sector, so it does not need to spend 1-Nms (for example, if there are N sectors, traversing each sector takes about 1ms, for a total of Nms) to find the sector where the data is erroneous. It can determine the sector where the data is erroneous based on the address information of the last sector read, and repair the data based on the corresponding backup data, thereby saving time ranging from 1ms to Nms and improving repair efficiency.

[0097] The following describes a data processing method provided by an embodiment of this application.

[0098] Please see Figure 5 , Figure 5 This is a flowchart illustrating another data processing method provided in an embodiment of this application. The first device may include a main processor (such as a CPU or AP), a display module, and RAM. The display module includes a display screen, a display driver chip (DDIC), and flash memory. Figure 5 As shown, this method can be a more detailed embodiment of the first device detecting whether there are errors in the data of N sectors in steps S101-S103 above. This method may include, but is not limited to, the following steps:

[0099] S501: The AP detects a first operation to trigger the display of the first device to light up.

[0100] The user can perform a first operation on the first device. For example, the user can turn on the display by pressing the power button on the display; or, the user can turn on the display by pressing the screen-on button on the display. Another example is that the user can turn on the display by pressing the screen-on button on the remote control corresponding to the display.

[0101] The AP can detect the user's first action on the first device.

[0102] S502: The AP powers on and sends initialization code to the DDIC.

[0103] When the first operation of the user on the first device is detected, the AP can power on and send an initialization code (such as initialcode) to the DDIC so that the DDIC can be initialized.

[0104] S503: The AP sends a wake-up message to the DDIC and delays for a first duration, during which the DDIC loads data from the flash memory.

[0105] After the AP sends the initialization code to the DDIC, it can send a wake-up command to the DDIC and delay for a first duration, such as sending sleepout(0x11) and delaying for 90ms, to ensure that the data of the N sectors for aging compensation has been reloaded from the flash memory.

[0106] S504: The AP determines whether the DDIC has finished loading data from the flash memory. If yes, it executes S505; otherwise, it disables aging compensation.

[0107] The AP can determine whether the DDIC has finished loading data from the flash memory by reading the status bit corresponding to the reload of the DDIC flash memory. If the status bit is 0, it means that the data has not been reloaded or is being reloaded. If the status bit is 1, it means that the data has been reloaded.

[0108] S505: AP checks if the RAM address is correct. If yes, execute S506; otherwise, disable aging compensation.

[0109] The data for N sectors can be first reloaded from flash memory into RAM, and then the display data of different areas of the display screen when they are lit can be read from RAM to obtain the data for N sectors. Optionally, a status bit can be used to indicate whether the reloading has been completed, for example, 0 indicates that the reloading has not been completed or is in the process of being reloaded, and 1 indicates that the reloading has been completed.

[0110] Therefore, the AP needs to determine whether the RAM address is correct. In other words, it can read the address of the DDIC RAM for aging compensation data to ensure that the RAM address is correct.

[0111] S506: The number of sectors containing erroneous data read by the AP from the DDIC.

[0112] After DDIC obtains the display data written to different areas of the display screen when it is lit from N sectors, it can determine whether there is erroneous data in each of the N sectors and record the value of the error flag, sending it to AP. AP determines the number of sectors with erroneous data based on the error flag value returned by DDIC.

[0113] If the quantity is 0, it means that there are no errors in the data of N sectors. At this time, the screen lighting process can be executed normally, that is, aging compensation is enabled. If the quantity is 1, the data repair process can be executed and the power is turned off. If the number of retries is ≤2, the power is turned on again and the steps of S501 are continued. If the quantity is >1, aging compensation can be turned off.

[0114] For details, please refer to the data recovery process. Figure 6 , Figure 6 This is a flowchart illustrating another data processing method provided in an embodiment of this application. Figure 6 As shown, the method may include, but is not limited to, the following steps:

[0115] S601: DDIC and flash memory communication enable and handshake.

[0116] When the AP determines that the number of sectors with erroneous data is 1, it can issue instructions to the DDIC and flash memory to enable communication and handshake between the DDIC and the flash memory.

[0117] S602: DDIC determines the location of the data error by using the sector address of the last written data.

[0118] The AP can send the sector address of the last written data to the DDIC, which then uses this sector address to determine the location of the data error. In other words, the location where the data error occurs is the sector where the last data was written.

[0119] S603: DDIC uses the backup data corresponding to the sector address to repair erroneous data.

[0120] The DDIC receives the sector address information from the AP's last read. Based on this sector address, it determines the location of the data error, erases the data in the sector containing the erroneous data in the flash memory, and writes the corresponding backup data to complete the data repair. After the data repair is complete, the AP can reset the screen module, power it off, and then power it back on to execute the normal screen-on process, i.e., enable aging compensation and turn on the screen.

[0121] This embodiment details how the devices in the first device (such as AP, DDIC, flash memory, and RAM) can determine the location of the sector with data errors based on the address information of the last read sector without traversing every sector, and can repair the data based on the corresponding backup data, thereby saving repair time and improving data repair efficiency.

[0122] The apparatus involved in the embodiments of this application is described below.

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

[0124] Electronic device 100 may include processor 110, external memory interface 120, internal memory 121, Universal Serial Bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber Identification Module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0125] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0126] Processor 110 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.

[0127] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.

[0128] It is understood that the processor 110 may also include an AE system. The AE system may be specifically configured within the ISP. The AE system can be used to automatically adjust exposure parameters. Optionally, the AE system may also be integrated into other processor chips. This application embodiment does not limit this.

[0129] In the embodiments provided in this application, the electronic device 100 can execute the above-described display calibration method through the processor 110.

[0130] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from this memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0131] In some embodiments, the processor 110 may include one or more interfaces. The USB interface 130 is an interface compliant with the USB standard specification, specifically a Mini USB interface, a Micro USB interface, a USB Type-C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used for data transfer between the electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices 100, such as AR devices.

[0132] The charging management module 140 receives charging input from the charger. While charging the battery 142, the charging management module 140 can also supply power to the electronic device 100 through the power management module 141.

[0133] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, internal memory 121, external memory, display 194, camera 193, and wireless communication module 160, etc.

[0134] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0135] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization.

[0136] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low-noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1.

[0137] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194.

[0138] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including Wireless Local Area Networks (WLANs) (such as Wireless Fidelity (Wi-Fi) networks), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), and Infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0139] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with networks and other devices through wireless communication technology.

[0140] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0141] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), an Active-Matrix Organic Light-Emitting Diode (AMOLED), a Flexible Light-Emitting Diode (FLED), Mini LED, Micro LED, Micro-OLED, Quantum Dot Light-Emitting Diodes (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.

[0142] In some embodiments of this application, the original W color coordinates (i.e., the original white point color coordinates) can be programmed into the display chip.

[0143] Electronic device 100 can acquire data through ISP, camera 193, video codec, GPU, display 194, and application processor.

[0144] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits this electrical signal to the ISP for processing, transforming it into an image or video visible to the naked eye. The ISP can also perform algorithmic optimization on image noise and brightness. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

[0145] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image or video signal. The ISP outputs the digital image or video signal to a DSP for processing. The DSP converts the digital image or video signal into a standard RGB, YUV, or other format image or video signal. In some embodiments, electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1. For example, in some embodiments, electronic device 100 can use N cameras 193 to acquire images with multiple exposure coefficients, and then, in video post-processing, electronic device 100 can synthesize an HDR image based on the images with multiple exposure coefficients using HDR technology.

[0146] A digital signal processor (DSP) is used to process digital signals. Besides processing digital image or video signals, it can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP is used to perform Fourier transforms on the frequency energy.

[0147] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record video in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0148] NPU stands for Neural Network (NN) computing processor. By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0149] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0150] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image and video playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.).

[0151] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0152] The audio module 170 is used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signal.

[0153] The loudspeaker 170A, also known as a "loudspeaker", is used to convert audio electrical signals into sound signals.

[0154] The receiver 170B, also known as the "earpiece", is used to convert audio electrical signals into sound signals.

[0155] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. Electronic device 100 may be equipped with at least one microphone 170C.

[0156] The 170D headphone jack is used to connect wired headphones.

[0157] The sensor module 180 may include one or more sensors, which may be of the same or different types. Understandably, Figure 7 The sensor module 180 shown is only an exemplary division method, and there may be other division methods, which are not limited in this application.

[0158] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A may be disposed on display screen 194. When a touch operation is applied to display screen 194, electronic device 100 detects the intensity of the touch operation based on pressure sensor 180A. Electronic device 100 may also calculate the touch position based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities may correspond to different operation commands.

[0159] The gyroscope sensor 180B can be used to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 about three axes (i.e., the x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for image stabilization.

[0160] The barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates altitude using the air pressure value measured by the barometric pressure sensor 180C to assist in positioning and navigation.

[0161] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip cover.

[0162] The accelerometer 180E can detect the magnitude of acceleration of electronic device 100 in various directions (typically three axes). When electronic device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of electronic device 100, and can be applied to applications such as screen orientation switching and pedometers.

[0163] A distance sensor 180F is used to measure distance. Electronic device 100 can measure distance via infrared or laser. In some embodiments, during a shooting scene, electronic device 100 can utilize the distance sensor 180F to measure distance for rapid focusing.

[0164] The proximity sensor 180G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The electronic device 100 emits infrared light outward through the LED. The electronic device 100 uses the photodiode to detect infrared reflected light from a nearby object. When sufficient reflected light is detected, it can be determined that an object is near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that no object is near the electronic device 100.

[0165] The 180L ambient light sensor is used to detect ambient light intensity.

[0166] The fingerprint sensor 180H is used to acquire fingerprints.

[0167] The 180J temperature sensor is used to detect temperature.

[0168] Touch sensor 180K, also known as a "touch panel," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touch screen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of electronic device 100, in a different position than display screen 194.

[0169] In one embodiment of this application, a user uses electronic device 100 to perform time-lapse photography or continuous shooting, requiring the acquisition of a series of images. In the time-lapse or continuous shooting scenario, electronic device 100 can adopt AE mode. That is, electronic device 100 automatically adjusts the AE value. During the preview of this series of images, if the user performs a touch operation on display screen 194, touch AE mode may be triggered. In touch AE mode, electronic device 100 can adjust the brightness of the corresponding location on the display screen touched by the user and perform high-weighted metering. This makes the weight of the user-touched area significantly higher than other areas when calculating the average brightness of the image, resulting in an average brightness that is closer to the average brightness of the user-touched area.

[0170] The bone conduction sensor 180M can acquire vibration signals.

[0171] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.

[0172] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can correspond to touch operations performed on different applications (such as taking photos, playing audio, etc.). Motor 191 can also correspond to different vibration feedback effects for touch operations performed on different areas of the display screen 194. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.

[0173] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.

[0174] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with the electronic device 100. The electronic device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The electronic device 100 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0175] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A data processing method, characterized in that, The method includes: The first device detects a first operation on the first device, the first operation being used to trigger the display screen of the first device to light up; The first device acquires data from N sectors, where the data from the N sectors correspond to the display data when the display screens in different areas are lit, and N is a positive integer; If an error is detected in the data of the N sectors, the first device determines the location of the data error by reading the sector address of the last written data. The first device uses the backup data corresponding to the sector address to repair the erroneous data; When errors are detected in the data of the N sectors, the first device determines the location of the data error by reading the sector address of the last written data, including: If the processor of the first device detects an error in the data of the N sectors, it sends the sector address of the last written data to the display driver chip DDIC of the first device. The DDIC communicates with and interacts with the flash memory of the first device. The DDIC determines the location of the data error based on the sector address of the last written data. The first device repairs the erroneous data using the backup data corresponding to the sector address, including: Based on the location of the data error, the DDIC uses the corresponding backup data to repair the erroneous data in the flash memory.

2. The method according to claim 1, characterized in that, The method further includes: The first device cyclically writes data to N sectors through N+M sectors, where the data in the (i+1)th sector is the backup data corresponding to the i-th sector that is currently being written, i < N, M ≤ N.

3. The method according to claim 2, characterized in that, The method further includes: In the N sectors, after the i-th sector has finished writing data and before the (i+1)-th sector has finished writing data, the first device reads the address information of the (i+1)-th sector.

4. The method according to claim 3, characterized in that, Reading the address information of the (i+1)th sector includes: In the N sectors, a preset time interval is between writing data in the i-th sector and writing data in the (i+1)-th sector; The first device reads the address information of the (i+1)th sector within the preset time interval.

5. The method according to claim 4, characterized in that, The first device determines the location of the data error by reading the sector address of the last written data, including: The first device determines the sector address of the last written data based on the address information of the (i+1)th sector read. The first device determines the location of the data error by using the sector address of the last written data.

6. The method according to any one of claims 1-5, characterized in that, The first device repairs the erroneous data using the backup data corresponding to the sector address, including: The first device determines the corresponding backup data based on the sector address of the last written data; The first device uses the corresponding backup data to repair the erroneous data.

7. The method according to claim 6, characterized in that, When errors are detected in the data of the N sectors, the first device determines the location of the data error by reading the sector address of the last written data, including: If errors are detected in the data of the N sectors, and the number of sectors with erroneous data is 1, the first device determines the location of the data error by reading the sector address of the last written data.

8. The method according to claim 7, characterized in that, The display data includes one or more of the following: display screen illumination time, brightness, grayscale, image quality, temperature, and frame rate.

9. The method according to claim 8, characterized in that, The method further includes: The first device uses the repaired data to perform aging compensation and then turns on the display screen.

10. The method according to claim 9, characterized in that, The first device uses the repaired data to perform aging compensation and activate the display screen, including: The first device calculates the corresponding compensation gain for the displayed data; The first device outputs the corresponding compensated target brightness on the display screen based on the compensated gain.

11. The method according to any one of claims 7-10, characterized in that, The method further includes: If no errors are detected in the data of the N sectors, the first device uses the data of the N sectors to perform aging compensation and activates the display screen.

12. An electronic device comprising a display screen, a memory, and one or more processors, characterized in that, The memory is used to store a computer program; the processor is used to invoke the computer program to cause the electronic device to perform the method of any one of claims 1-11.

13. A computer storage medium, characterized in that, include: Computer instructions; when the computer instructions are executed on an electronic device, causing the electronic device to perform the method of any one of claims 1-11.