Data processing method and related equipment

By using the last written sector address in the OLED display device to determine the data error position and use backup data to repair it, the problem of inefficient repair of aging compensation data is solved, and fast and efficient data repair is achieved.

CN120276698AActive Publication Date: 2025-07-08HONOR DEVICE CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202311873074.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-29
Publication Date
2025-07-08
Estimated Expiration
2043-12-29

AI Technical Summary

Technical Problem

In the prior art, the aging compensation data repair efficiency of OLED display devices is low, especially in abnormal power failure, and it is necessary to traverse all storage areas to find error data, resulting in a long repair time.

Method used

By detecting the display screen bright operation, data of N sectors are obtained, and the data error location is determined using the sector address written last time, and backup data is used to repair it to avoid traversing all sectors.

Benefits of technology

Save data repair time, improve repair efficiency, reduce repair time from 1ms to Nms, and improve data repair efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120276698A_ABST
    Figure CN120276698A_ABST
Patent Text Reader

Abstract

The invention provides a data processing method and related equipment. According to the method, a first device detects a first operation on the first device, and the first operation is used for triggering a display screen of the first device to be turned on; the first device obtains data of N sectors, the data of the N sectors correspond to display data when display screens in different areas are turned on, and N is a positive integer; when it is detected that errors exist in the data of the N sectors, the first device determines the positions of the data errors through the read sector address of the data written in the last time; and the first equipment uses the backup data corresponding to the sector address to repair the error data. According to the method, the position of the sector with the data error can be determined according to the address information of the sector read at the last time, and the data can be repaired according to the corresponding backup data, so that the time for finding the data error position by traversing all the sectors can be saved, and the data repairing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of terminals, and in particular, to a data processing method and related devices. Background Art

[0002] Organic light emitting diode (OLED) display devices are widely used in terminal devices such as mobile phones, tablets, and wearable devices. Aging compensation (de-burn-in) can solve the problem of screen burn caused by the aging of OLED devices due to long-term lighting. The compensation effect of aging compensation can depend on the aging curve of the OLED device and the user's screen lighting data. Since the user's screen lighting data for aging compensation needs to be continuously accumulated, a large amount of the user's screen lighting data needs to be recorded in a non-volatile memory. If the terminal experiences abnormal power-off, it will cause abnormal data storage. Since the current processor and memory do not have the ability to directly repair data by themselves, and the stored user's screen lighting data plays a crucial role in the implementation of the aging compensation function. Currently, when the stored user's screen lighting data is abnormal, all storage areas are traversed until the storage area corresponding to the error data is found, and backup data is used for data repair. However, such a data repair scheme takes a long time and the data repair efficiency is low.

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

[0004] This application provides a data processing method and related devices. According to this data processing method, a first device detects a first operation on the first device, and the first operation is used to trigger the display screen of the first device to light up; the first device obtains data of N sectors, and the data of the N sectors corresponds to the display data when different areas of the display screen are lit, and N is a positive integer; when it is detected that the data of the N sectors is incorrect, the first device determines the position of the data error through the sector address of the last written data read; the first device uses the backup data corresponding to the sector address to repair the incorrect data. This method can determine the sector position where the data is incorrect through the address information of the last read sector, and can repair the data according to the corresponding backup data, so it can save the time of traversing all sector data and improve the data repair efficiency.

[0005] In a first aspect, the present application provides a data processing method. This method can be applied to a first device. The method may include: the first device detects a first operation on the first device, and the first operation is used to trigger the display screen of the first device to turn on; the first device acquires data of N sectors, and the data of the N sectors corresponds to the display data when different areas of the display screen are lit, where N is a positive integer; in the case where it is detected that the data of the N sectors is incorrect, the first device determines the position of the data error through the sector address of the last written data read; the first device uses the backup data corresponding to the sector address to repair the incorrect data.

[0006] In the solution provided by the present application, since the display data when the aging-compensated display screen is lit needs to be continuously accumulated, the data needs to be written into a non-volatile memory. During the data storage process, if an abnormal power-off occurs, it is easy to cause the stored data to be abnormal. Currently, since the processor and the memory itself do not have the ability to directly repair data, during the data storage process, data backup and data repair play a crucial role in the implementation of the aging compensation function. When the first device detects the first operation of the user, it can acquire and detect whether the data of N sectors is incorrect. In the case of incorrect data, it is not necessary to traverse each sector. Therefore, it does not take 1 - N ms (for example, if there are N sectors, traversing each sector takes about 1 ms, a total of N ms) to find the sector position where the data is incorrect. The sector position where the data is incorrect can be determined according to the address information of the last read sector, and the incorrect data can be repaired according to the corresponding backup data, thereby saving time ranging from 1 ms to N ms and improving the repair efficiency.

[0007] It can be understood that the first device may be the electronic device in the present application, or may also be the electronic device 100 in the present application.

[0008] In some embodiments of the present application, the method further includes: the first device circularly writes the data of N sectors through N + M sectors, where the data of the (i + 1)-th sector is the backup data corresponding to the i-th sector where the data is being written, i < N, and M ≤ N. In this embodiment, M sectors are used as the data backup space corresponding to the sectors where the data has been stored, so that when data storage errors occur due to power-off or other reasons in the future, the incorrect data can be repaired according to the backup data, thereby improving the data repair efficiency.

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

[0010] In some embodiments of the present application, reading the address information of the current (i + 1)-th sector includes: among the 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 first device reads the address information of the (i + 1)-th sector within the preset time interval. In this embodiment, the data written to the N sectors can be written at a certain writing frequency. For example, there can be a preset time interval between the storage data times of two adjacent sectors among the N sectors. In this embodiment, each preset time interval can be utilized, that is, the address information of the next sector (the sector to which data will be written) can be read within each preset time interval. It can be understood that according to the data writing frequency (such as storing the data of each sector using 80 ms), and using the time interval in this frequency to read the address information of the sector to which data will be written. So as to be able to realize that when the first operation is detected, if it is detected that there are errors in the data of the N sectors, the location of the error data can be determined through the address information of the last read sector, thereby reducing the time for traversing each sector and reducing the time for detecting the location of data errors.

[0011] In some embodiments of the present application, the first device determines the location of data errors by the address of the sector where the last data was written, including: the first device determines the address of the sector where the last data was written according to the address information of the (i + 1)-th sector read; the first device determines the location of data errors by the address of the sector where the last data was written.

[0012] In some embodiments of the present application, the first device uses the backup data corresponding to the sector address to repair the error data, including: the first device determines the backup data corresponding to the sector according to the address of the sector where the last data was written; the first device uses the backup data corresponding to the sector address to repair the error data.

[0013] In some embodiments of the present application, when it is detected that the data in N sectors is incorrect, the first device determines the location of the data error by the sector address of the last written data read, including: when the whole machine processor of the first device detects that the data in N sectors is incorrect, sending the sector address of the last written data read to the display driver integrated circuit (DDIC) of the first device; the DDIC enables communication and handshake 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 incorrect data using the backup data corresponding to the sector address, including: the DDIC repairs the incorrect data in the flash memory using the corresponding backup data based on the location of the data error.

[0014] In some embodiments of the present application, when it is detected that the data in N sectors is incorrect, the first device determines the location of the data error by the sector address of the last written data read, including: when it is detected that the data in N sectors is incorrect and the number of sectors with incorrect data is 1, the first device determines the location of the data error by the sector address of the last written data read.

[0015] In some embodiments of the present application, the display data includes one or more of the time when the display screen is lit, brightness, gray scale, picture, temperature, and frame rate.

[0016] In some embodiments of the present application, the method further includes: the first device performs aging compensation using the repaired data and turns on the display screen.

[0017] In some embodiments of the present application, the first device performs aging compensation using the repaired data and turns on the display screen, including: the first device calculates the corresponding compensation gain for the display data; the first device outputs the corresponding compensation target brightness for the display screen according to the compensation gain.

[0018] In some embodiments of the present application, the method further includes: when it is detected that the data in N sectors is correct, the first device performs aging compensation using the data in N sectors and turns on the display screen.

[0019] It can be understood that the relevant descriptions of the above implementation manners can also be specifically referred to in the following text.

[0020] Second aspect, the present application provides an electronic device. The electronic device may include a display screen, a memory, and one or more processors. The memory is used to store a computer program. The processor is used to call the computer program so that the electronic device performs: detecting a first operation on a first device, the first operation being used to trigger the display screen of the first device to turn on; acquiring data of N sectors, the data of the N sectors corresponding to the display data when different regions of the display screen are lit, N being a positive integer; in the case of detecting that the data of the N sectors is incorrect, determining the position of the data error through the sector address of the last written data read; using the backup data corresponding to the sector address to repair the incorrect data.

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

[0022] In combination with the second aspect, in a possible implementation, the processor, when used to call the computer program so that the electronic device performs: among the N sectors, after the current i-th sector finishes writing data and before the (i + 1)-th sector writes data, the first device reads the address information of the current (i + 1)-th sector.

[0023] In combination with the second aspect, in a possible implementation, the processor, when used to call the computer program so that the electronic device performs reading the address information of the current (i + 1)-th sector, specifically performs: among the N sectors, there is a preset time interval between writing data to the i-th sector and writing data to the (i + 1)-th sector, and the address information of the (i + 1)-th sector is read within the preset time interval.

[0024] In combination with the second aspect, in a possible implementation, the processor, when used to call the computer program so that the electronic device performs determining the position of the data error through the sector address of the last written data read, specifically performs: determining the sector address of the last written data according to the address information of the current (i + 1)-th sector read; determining the position of the data error through the sector address of the last written data.

[0025] In combination with the second aspect, in a possible implementation, the processor, when used to call the computer program so that the electronic device performs using the backup data corresponding to the sector address to repair the incorrect data, specifically performs: determining the backup data corresponding to the sector according to the sector address of the last written data; using the backup data corresponding to the sector address to repair the incorrect data.

[0026] In combination with the second aspect, in a possible implementation, the processor is used to call a computer program, so that the electronic device executes to determine the location of the data error by the sector address of the last written data read when it is detected that the data in N sectors is in error. Specifically, it executes: when it is detected that the data in N sectors is in error, sending the sector address of the last written data read to the DDIC; enabling communication and handshaking between the DDIC and the flash memory; the DDIC determining the location of the data error based on the sector address of the last written data; using the backup data corresponding to the sector address to repair the error data. Specifically: the DDIC repairs the error data in the flash memory using the corresponding backup data based on the location of the data error.

[0027] In combination with the second aspect, in a possible implementation, the processor is used to call a computer program, so that the electronic device executes to determine the location of the data error by the sector address of the last written data read when it is detected that the data in N sectors is in error. Specifically, it executes: when it is detected that the data in N sectors is in error and the number of sectors with error data is 1, determining the location of the data error by the sector address of the last written data read. In combination with the second aspect, in a possible implementation, the display data includes one or more of the time when the display screen is lit, brightness, gray scale, picture, temperature, and frame rate.

[0028] In combination with the second aspect, in a possible implementation, the processor is used to call a computer program, so that the electronic device executes: performing aging compensation using the repaired data and executing the display screen to turn on.

[0029] In combination with the second aspect, in a possible implementation, the processor is used to call a computer program, so that the electronic device executes performing aging compensation using the repaired data and executing the display screen to turn on. Specifically, it executes: calculating the corresponding compensation gain for the display data; outputting the corresponding compensation target brightness of the display screen according to the compensation gain.

[0030] In combination with the second aspect, in a possible implementation, the processor is used to call a computer program, so that the electronic device executes: when it is detected that the data in N sectors is not in error, performing aging compensation using the data in N sectors and executing the display screen to turn on.

[0031] In a third aspect, the present application provides a computer storage medium, including computer instructions, which when running on an electronic device, cause the electronic device to execute any one of the possible implementations in the first aspect above.

[0032] Fourth aspect, an embodiment of the present application provides a chip, which can be applied to an electronic device. The chip includes one or more processors, and the processors are used to call computer instructions to enable the electronic device to execute any possible implementation manner in the above first aspect.

[0033] Fifth aspect, an embodiment of the present application provides a computer program product containing instructions. When the computer program product runs on an electronic device, it enables the electronic device to execute any possible implementation manner in the above first aspect.

[0034] It can be understood that the electronic device provided in the above 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 manner in the above first aspect. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of any possible implementation manner in the above first aspect, and will not be elaborated here. Description of the Drawings

[0035] Figure 1 It is a flowchart of a data processing method provided by an embodiment of the present application;

[0036] Figure 2 It is a schematic diagram of data writing provided by an embodiment of the present application;

[0037] Figure 3 It is a schematic diagram of reading the address information of a sector provided by an embodiment of the present application;

[0038] Figure 4 It is a schematic diagram of an aging compensation curve provided by an embodiment of the present application;

[0039] Figure 5 It is a schematic flowchart of another data processing method provided by an embodiment of the present application;

[0040] Figure 6 It is a schematic flowchart of yet another data processing method provided by an embodiment of the present application;

[0041] Figure 7 It is a schematic diagram of the hardware structure of an electronic device 100 provided by an embodiment of the present application. Detailed Embodiments

[0042] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Among them, in the description of the embodiments of the present application, unless otherwise specified, " / " means "or". For example, A / B may represent A or B; "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present application, "a plurality" means two or more than two.

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

[0044] Referring to "embodiment" in the present application means that a specific feature, structure or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The phrase appears in various positions in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described in the present application can be combined with other embodiments.

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

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

[0047] More and more electronic devices use OLED display screens based on the self-luminous principle. The OLED display screen is composed of many pixel points, each pixel point emits light independently and will not interfere with each other. The OLED display screen belongs to a current-driven light-emitting device, and the brightness thereof is basically proportional to the current flowing through.

[0048] OLED display technology is different from traditional liquid crystal display (LCD) display. It does not require a backlight, but uses a very thin organic material coating and a glass substrate (or flexible organic substrate). When current passes through, these organic materials will emit light. The current excitation of organic materials on the OLED screen will cause the organic materials to age. The result of aging is that under the same driving current, the brightness of the luminescent material is lower than the original state before aging, and the greater the current, the faster the luminescent material ages.

[0049] In the daily use of users, the color of the displayed content has depth (high and low grayscale) and brightness. The current size can be controlled at the hardware bottom layer. The larger the current, the brighter the screen; the smaller the current, the darker the screen. Then on the same screen, with long-term use, the accumulated brightness of the displayed content in different areas is different. For example, if the same application is often used, the average brightness of some areas will be higher than that of other parts. In this way, the screen area with high cumulative brightness has a large average current and the luminous material ages faster. Because the screen display content is converted from the Rawdata (raw data) transmitted by the whole machine, the Rawdata of each pixel area is consistent under the uniform display screen, and the final effect is that the area with fast aging has lower brightness than other areas when displaying a uniform screen; if the aging degree of the luminous material between areas is different enough, brightness differences will also be formed under some uneven screens. This situation is called screen burn-in.

[0050] 2. Deburnin technology

[0051] The method of display content compensation is usually used to target the aging of the luminescent materials of the OLED screen. That is, the aging curve of the luminescent material is known (the relationship between the degree of aging and time). By collecting the display content of different areas of the screen in real time, the accumulated brightness value is substituted into the aging curve to obtain the aging degree (attenuation percentage) of different areas. When the screen displays different brightness, a certain brightness compensation is given to the content in the area to make it the same as before attenuation; or the brightness of the surrounding display content is lowered to be consistent with the attenuation. In this method, the overall compensation effect is to reduce the afterimage caused by aging differences. This method is usually called deburnin technology.

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

[0053] A driving IC is an integrated circuit chip that controls the switching and display modes of a liquid crystal panel and an active-matrix organic light-emitting diode (AMOLED) panel. The DDIC is one of the main control components of the panel and is also known as the "brain" of the panel. Its main function is to send driving signals and data to the display panel in the form of electrical signals. By controlling the screen brightness and color, image information such as letters and pictures can be presented on the screen.

[0054] For an OLED DDIC, the main function of the DDIC is to control the OLED display panel. It needs to cooperate with the OLED display screen to achieve thin, flexible, and foldable features, and provide a wide color gamut and high-fidelity display signals. The DDIC drives the display panel through electrical signals and transmits video data.

[0055] Currently, OLED display devices are widely used in terminal devices such as mobile phones, tablets, and wearable devices. Aging compensation (de-burn-in) can solve the problem of long-term afterimages and burn-in caused by inconsistent aging of each sub-pixel due to long-term lighting of OLED devices. The compensation effect of aging compensation can depend on the aging curve of the OLED device and the user's screen lighting data. Since the user's screen lighting data for aging compensation needs to be continuously accumulated, a large amount of the user's screen lighting data needs to be written into the non-volatile memory. If the terminal experiences abnormal power-off, it will cause abnormal data storage. Since the current processor and memory do not have the ability to directly repair data themselves, and the stored user's screen lighting data is crucial for the implementation of the aging compensation function, the possible technical solutions for data repair in case of abnormal data storage are as follows:

[0056] To ensure that the aging compensation effect meets the expectations, the main processor in the terminal device can detect whether the user's screen lighting data related to aging compensation is normal before each screen turn-on. The general detection process is as follows: First, the main processor powers on and sends initialization code to the DDIC. The DDIC reloads data from the flash memory, the DDIC determines whether there is an error in the data, and sends the value of the error flag to the main processor. The main processor determines whether the user's screen lighting data related to aging compensation is normal by reading the value of the error flag of the DDIC. If it is determined that the relevant data is abnormal, it can check one by one according to the sector addresses of multiple stored data sent by the main processor and send the inspection result of each sector to the main processor until the sector with the error data is found.

[0057] In the above solution, when the user's lit screen data stored is abnormal, all storage areas are traversed until the storage area corresponding to the error data is found, and the backup data is used for data repair. However, such a data repair solution takes a long time and has low data repair efficiency. Therefore, how to improve the data repair efficiency is an urgent problem to be solved at present.

[0058] In view of this, the present application provides a data processing method. When a first device detects an operation of triggering the display screen of the first device to turn on, it obtains data of N sectors; in the case where it is detected that the data of the N sectors is incorrect, the first device determines the position of the data error according to the sector address of the last stored data read, and uses the backup data corresponding to the sector address to repair the incorrect data. Different from traversing all storage areas until the storage area corresponding to the error data is found, in the embodiment of the present application, in the case of incorrect data, the position of the data error can be judged according to the write-back sector address read last time, and the problematic data can be repaired with the backup data. Therefore, the time for traversing all sector data can be saved, and the data repair efficiency can be improved.

[0059] The electronic device in the embodiment of the present application can be an electronic device provided with a display screen. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a handheld computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not make a specific limitation. Exemplarily, the display screen can be an OLED display screen, or can also be other types of display screens, and the embodiment of the present application does not make a specific limitation.

[0060] The execution subject of the data processing method provided by the embodiment of the present application can be the above-mentioned electronic device, or a functional module and / or functional entity in the electronic device that can implement the data processing method, and the solution of the present application can be implemented in a hardware and / or software manner, which can be specifically determined according to actual usage requirements, and the embodiment of the present application does not make a limitation. Hereinafter, taking the electronic device as an example, the data processing method provided by the embodiment of the present application will be described exemplarily with reference to the accompanying drawings.

[0061] The following introduces a data processing method provided by the embodiment of the present application.

[0062] Please refer to Figure 1 , Figure 1The flowchart of a data processing method provided by an embodiment of the present application. The method may include but is not limited to the following steps:

[0063] S101: The first device detects a first operation on the first device for triggering the display screen of the first device to turn on.

[0064] The user can perform a first operation on the first device. For example, the user triggers the display screen to turn on by clicking the power-on key of the display screen; or, the user triggers the display screen to turn on by clicking the screen-on key of the display screen. For another example, the user triggers the display screen to turn on by clicking the screen-on key on the remote control corresponding to the display screen.

[0065] In the embodiment of the present application, the display screen may be an OLED display screen, and the first device may be an electronic device provided with an OLED display screen. Exemplarily, the first device may include an OLED module, and the OLED module includes an OLED display screen. It can be understood that the display screen may also be other types of display screens, and the type of the display screen is not limited in this embodiment.

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

[0067] When the first operation on the first device is detected, the first device can acquire data of N sectors. Among them, the data of N sectors may 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, etc. Each of the N sectors may correspond to the display data when a certain area of the display screen of the first device is lit.

[0068] The display data may include one or more of the time, brightness, gray scale, picture, temperature, and frame rate when the display screen is lit. Exemplarily, the display data may include the time when the display screen is lit, such as the current usage duration of a set application. The set application can be determined through big data analysis, and the set application may include instant messaging applications, short video applications, game applications, and live broadcast applications that are frequently used. The current usage duration may refer to the usage duration of the set application in the first device from the time when the set application is installed on the first device to the current moment. The set usage duration may be a duration value or a duration range. The set application may be one application or multiple applications. Exemplarily, the display data may include picture information directly reflecting the deterioration of the display effect, for example, the current measured image of the display screen of the first device. The display screen of the first device displays a picture of a set color channel (for example, red (R) channel, green (G) channel, blue (B) channel, and white (W) channel), which is recorded as an RGBW picture.

[0069] Since the display data when the display screen for aging compensation is lit needs to be continuously accumulated, the data can be written into a non-volatile memory. For example, a flash memory can generally be used for a display module. In this embodiment, the flash memory is taken as an example for illustration. It can be understood that the non-volatile memory can also be other types of memories, and the type of the non-volatile memory is not limited in this embodiment. A possible implementation for obtaining the data of N sectors is as follows:

[0070] A possible implementation is to reload the display data when the display screen of different regions written by N sectors from the flash memory, so as to obtain the data of N sectors. Optionally, a status bit is also used to indicate whether the reloading has been completed. For example, 0 indicates that the reloading has not been performed or is in progress, and 1 indicates that the reloading has been completed.

[0071] Another possible implementation is to first reload the display data when the display screen of different regions written by N sectors from the flash memory into a random access memory (RAM). RAM can also be called the main memory, which is an internal memory that directly exchanges data with the main processor (such as a central processing unit (CPU) or an application processor (AP) of the whole machine), and then read the display data when the display screen of different regions stored in N sectors from the RAM, so as to obtain the data of N sectors. Optionally, a status bit is also used to indicate whether the reloading has been completed. For example, 0 indicates that the reloading has not been performed or is in progress, and 1 indicates that the reloading has been completed.

[0072] It can be understood that before the user performs a first operation on the first device, during the process of the display screen of the first device being lit, the data of N sectors can be cyclically written through N+M sectors, where the data of the (i+1)-th sector is the backup data of the i-th sector where the data is being written, and M≤N. Exemplarily, M = 1, that is, an additional 1 sector space can be used as the backup data of the sector where the data is being stored.

[0073] The data of N sectors can correspond to the display data when the display screens of different regions are lit, and N is a positive integer.

[0074] Since the display data when the display screen for aging compensation is lit needs to be continuously accumulated, the data needs to be written into a non-volatile memory. During the data writing process, if an abnormal power failure occurs, it is easy to cause the written data to be abnormal. At present, since the processor and the memory itself do not have the ability to directly repair the data, during the data writing process, data backup and data repair play a crucial role in the implementation of the aging compensation function.

[0075] For a possible implementation manner of data writing and backup, for example, please refer to Figure 2 , Figure 2 which is a schematic diagram of data writing provided by an embodiment of the present application. As Figure 2 shown, taking M as 1 above as an example, for the data volume of N sectors, such as the display data when the display screens corresponding to different regions are lit for each sector, the space of N + 1 sectors can be used for writing, where the data of the (i + 1)-th sector is the backup data corresponding to the i-th sector where the data is being written. A cyclic writing scheme can be adopted, which can ensure that there is always a backup for the sector where the data is being written. Figure 2 In it, taking N = 7 as an example for exemplary illustration, the data of 7 sectors is written with 8 sectors, and the extra one sector is reserved as the backup data space for the sector where the data is being written. For example, if the data of S1 - S7 has been initialized, or the data of S1 - S7 has been written in the first round (all are 0), a new round of data writing starts, such as S1(2). At this time, S1 is the backup data of S1(2). Then, continue to write the data of the S2(2) sector. At this time, S2 is the backup data of S2(2),..., continue to write the data of the S7(2) sector. At this time, S7 is the backup data of S7(2). Thus, data cyclic writing can be realized, and there is always a sector's data as the backup data for the sector where the data is being written.

[0076] For N sectors, after the data is written in the current i-th sector and before the data is written in the (i + 1)-th sector, the first device can read the address information of the (i + 1)-th sector. For example, there is a preset time interval between writing the data in the i-th sector and writing the data in the (i + 1)-th sector. The first device writes the address information of the (i + 1)-th sector according to the preset time, where i < N. It can be understood that the duration of each preset time can be the same, or different, or the first device can start writing the data of the (i + 1)-th sector after reading the address information of the (i + 1)-th sector. Among them, the address information of the sector can be information such as the identifier or ID corresponding to the sector.

[0077] In a possible implementation, the first device can write data to each sector according to a preset frequency. For example, it writes data to one sector every 2 s. If it only takes 80 ms to write data to each sector, there will be an idle time of 1.2 s between two adjacent sectors. Then, the address information of the (i + 1)-th sector can be read during this 1.2-s idle time, rationally using the idle time to read the address information of the sector, which will not affect the time for writing data to the sector. Moreover, it can also be realized that when it is detected that there is incorrect data in N sectors later, the position of the data error can be determined according to the address information read last time. Therefore, without affecting the data writing efficiency, the data repair efficiency can be improved.

[0078] Exemplarily, please refer to Figure 3 , Figure 3 which is a schematic diagram of writing the address information of a sector provided in an embodiment of this application. As Figure 3 shown, taking 80 ms as the time for writing data to each sector and 1 s as the time interval between writing data to adjacent sectors as an example for exemplary illustration. Among them, the time for writing data to sector S1 is 80 ms. After a time interval of 1 s, continue to write data to sector S2. The time for writing data to sector S2 is 80 ms. After a time interval of 1 s, continue to write data to sector S3,... After a time interval of 1 s, continue to write data to sector Si. The time for writing data to sector Si is 80 ms. After a time interval of 1 s, continue to write data to sector Si + 1,... until writing data to sector SN. Among them, within the preset time interval between writing data to two adjacent sectors, the address information of the next sector (the sector to which data will be written soon) can be read.

[0079] It can be understood that the address information of the sector to which data will be written soon can be read according to the preset time interval in the data writing frequency. When the first operation (the display is powered on again) is detected, if it is detected that there is incorrect data in N sectors, the position where the incorrect data exists can be judged according to the address information of the sector read last time, and the corresponding backup data is used for repair.

[0080] S103: Judge whether there is incorrect data in N sectors. If so, steps S104 and S105 can be executed. If not, step S105 can be executed.

[0081] Before the display screen is lit, perform aging compensation on the lit-screen data and then execute the operation of lighting the display screen. To ensure that the effect of aging compensation meets the expectation, it can be checked whether the lit-screen data and status related to aging compensation are normal before each time the screen is lit. The detection process can be as follows:

[0082] After obtaining the data of N sectors, it is possible to separately determine whether there is an error in the data of each of the N sectors. If there is incorrect data in the N sectors, an error flag can be recorded. Based on the error flag, the number of sectors with incorrect data can be determined. For example, each sector can be detected twice (such as the head and tail of the sector). If errors are detected both times, the error flag can be 2. If an error is detected in any one of the two detections, the error flag can be 1. Both represent that there is incorrect data in the sector. That is, an error flag of 1 or 2 can indicate that the number of sectors with incorrect data is 1.

[0083] In a possible implementation, if the number of sectors with incorrect data is 0, step S105 can be executed; if the number of sectors with incorrect data is 1, steps S104 and S105 can be executed; if the number of sectors with incorrect data is greater than 1, the location of the data error does not need to be found and the aging compensation process can be closed, and the display screen can be directly turned on. It can be understood that when the display screen is turned on without going through the aging compensation process, the display effect may be poor, such as in the case of display screen aging.

[0084] S104: The first device determines the location of the data error through the sector address of the last written data read, and uses the backup data corresponding to this sector address to repair the incorrect data.

[0085] When the first device determines that there is an error in the data of the N sectors, the location of the data error can be determined through the sector address of the last written data read, that is, the location where the data is incorrect is the sector of the last written data. Exemplarily, if data is written to the i-th sector and the address information of the (i + 1)-th sector is read, and if there is an error in writing the data of the (i + 1)-th sector due to a power failure or other reasons during the preparation process of writing data to the (i + 1)-th sector or during the process of writing data to the (i + 1)-th sector, then at this time, the address information of the (i + 1)-th sector has been read, and it can be determined that the data of the (i + 1)-th sector is incorrect based on the address information of the (i + 1)-th sector. Therefore, in this embodiment, the sector where the data is incorrect can be quickly determined through the last read sector address, and the incorrect data can be repaired using the backup data corresponding to this sector address. Specifically, the first device determines the backup data corresponding to the sector according to the sector address and uses the backup data corresponding to this sector address to repair the incorrect data, such as erasing the data in the sector and rewriting the backup data to complete the update and replacement of the data.

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

[0087] For the above step S103, if it is detected that the data of N sectors is incorrect, the first device can use the repaired data in step S104 for aging compensation and then turn on the display screen.

[0088] For the above step S103, if it is detected that the data of N sectors is correct, the first device can use the data of N sectors for aging compensation and then turn on the display screen.

[0089] Due to the characteristics of the display module itself, when the first device is used for a certain period of time, the display module of the first device will gradually age, resulting in abnormal display effects of the display screen. In addition, when the user uses the display screen to display a fixed picture for a long time, it is also easy to cause damage to the display module, resulting in image retention on the display screen and deteriorating the display effect. For example, when the first device is a mobile phone, when the user uses certain applications for a long time, the display effect of the mobile phone will deteriorate. For example, the number of pixels per unit area of the display screen is increasing, and the pixel area becomes smaller, resulting in easy brightness attenuation and color deviation. Or for a foldable mobile phone, the full-screen and half-screen display frequencies are different, resulting in inconsistent brightness on both sides. Or some application software has been used for a long time. Because the background is a small gray scale, image retention will also occur after a long time of display. Therefore, when the first device detects the first operation of the user, before turning on the display screen, the aging compensation (deburnin) can be performed on the data for turning on the screen (such as the display data when the display screen is turned on in the text), and then the operation of turning on the display screen is performed.

[0090] The first device uses the display data when the display screen is turned on for aging compensation and then turns on the display screen. Specifically, the corresponding compensation gains can be calculated for the display data such as time, brightness, gray scale, picture, temperature, and frame rate. For example, the corresponding compensation gains can be calculated by looking up a table. The compensation gains are then adjusted through gamma to output the corresponding compensated target brightness. It can be understood that different compensation models can be adopted for different light-emitting materials or different panel designs, which is a well-known conventional design in the art and will not be elaborated here.

[0091] For the compensated target brightness, please refer to Figure 4 , Figure 4 which is a schematic diagram of an aging compensation curve provided by an embodiment of the present application. As Figure 4 shown, the A line can correspond to the initial brightness. Taking two display areas of the display screen as an example, the B area can be a weak aging area, and the C area can be a strong aging area. Exemplarily, it is divided into the following 3 different types:

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

[0093] Method ②: Brighten the brightness of area C to that of area B.

[0094] Method ③: Lower the brightness of area B to that of area C.

[0095] The purpose of the above three solutions is to maintain the brightness consistency of the display area. When in use, the screen can be correspondingly divided into different blocks for compensation, and the brightness value of one of the blocks can be selected as the target value for compensation or all compensated to the initial brightness.

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

[0097] Next, a data processing method provided by an embodiment of the present application will be introduced.

[0098] Please refer to Figure 5 , Figure 5 , which is a schematic flowchart of another data processing method provided by an embodiment of the present application. The first device may include a main processor (such as a CPU or an AP), a display screen module, and a RAM. The display screen module includes a display screen, a display driving chip (DDIC), and a flash memory. As Figure 5 shown, this method may be a refined embodiment of the first device detecting whether the data in N sectors is incorrect in the above steps S101 - S103. This method may include but is not limited to the following steps:

[0099] S501: The AP detects a first operation for triggering the display screen of the first device to turn on.

[0100] The user can perform a first operation on the first device. For example, the user triggers the display screen to turn on by clicking the power-on key of the display screen; or the user triggers the display screen to turn on by clicking the screen-on key of the display screen. For another example, the user triggers the display screen to turn on by clicking the screen-on key on the remote control corresponding to the display screen.

[0101] The AP can detect the first operation of the user on the first device.

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

[0103] When detecting the first operation of the user on the first device, the AP can power on and send initialization code (such as initial code) to the DDIC to initialize the DDIC.

[0104] S503: The AP sends a wake-up command to the DDIC and delays for a first duration, where the first duration is used for the DDIC to load 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. For example, it sends sleepout(0x11) and delays for 90 ms to ensure that the data of N sectors for aging compensation has been reloaded from the flash memory.

[0106] S504: The AP determines whether the DDIC has completed loading data from the flash memory. If so, it executes S505; if not, it turns off the aging compensation.

[0107] The AP can determine whether the DDIC has completed 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 reload has not been performed or is in progress; if the status bit is 1, it means that the reload has been completed.

[0108] S505: The AP determines whether the RAM address is correct. If so, it executes S506; if not, it turns off the aging compensation.

[0109] The data of N sectors can be first reloaded from the flash memory to the RAM, and then the display data when the display screens of different regions stored in the N sectors are lit can be read from the RAM, so as to obtain the data of N sectors. Optionally, it is also indicated by a status bit whether the reload has been completed. For example, 0 means that the reload has not been performed or is in progress, and 1 means that the reload has been completed.

[0110] Therefore, the AP needs to determine whether the RAM address is correct. That is to say, it can read the address of the DDIC RAM regarding the aging compensation data to ensure that the RAM address is correct.

[0111] S506: The AP reads the number of sectors with error data from the DDIC.

[0112] After the DDIC obtains the display data when the display screens of different regions written in the N sectors are lit, it can determine whether there is error data in the data of each of the N sectors, record the value of the error flag, and send it to the AP. The AP determines the number of sectors with error data based on the value of the error flag returned by the DDIC:

[0113] If the quantity is 0, it can indicate that there is no error in the data of N sectors. At this time, the screen-on process can be normally executed, that is, the aging compensation is enabled. If the quantity is 1, the data repair process can be executed and the power is turned off. When the number of retry attempts ≤ 2, the power is re-powered on and the steps of S501 are continued to be executed. If the quantity > 1, the aging compensation can be turned off.

[0114] Among them, the data repair process can refer to Figure 6 , Figure 6 which is a schematic flowchart of another data processing method provided by an embodiment of the present application. As Figure 6 shown, the method may include but is not limited to the following steps:

[0115] S601: Enable and handshake the communication between the DDIC and the flash memory.

[0116] When the AP determines that the number of sectors with error data is 1, an instruction can be sent to the DDIC and the flash memory to enable and handshake the communication between the DDIC and the flash memory.

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

[0118] The AP can send the sector address of the last written data read to the DDIC, and the DDIC determines the location of the data error according to the sector address, that is, the location where the data is in error is the sector of the last written data.

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

[0120] The DDIC receives the sector address information of the last read from the AP. After determining the location of the data error according to the sector address, it can erase the data in the sector with error data in the flash memory and write the backup data corresponding to the sector to complete the repair of the error data. After the data repair is completed, the AP can reset and power off the screen module, and then power it on again to normally execute the screen-on process, that is, enable the aging compensation and turn on the screen.

[0121] In this embodiment, it is detailed that among the devices in the first device (such as the AP, DDIC, flash memory, and RAM), it is possible to determine the location of the sector with error data without traversing each sector according to the address information of the last read sector, and the data can be repaired according to the corresponding backup data, thereby saving repair time and improving the data repair efficiency.

[0122] Next, the devices involved in the embodiments of the present application are introduced.

[0123] Figure 7Schematic diagram of the hardware structure of an electronic device 100 provided by an embodiment of this application.

[0124] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a 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 acceleration sensor 180E, a distance sensor 180F, a proximity light 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 can be understood that the structure illustrated in the embodiment of this application does 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 shown in the figure, or combine certain components, or split certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0126] The processor 110 may include one or more processing units. For example: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and / or a Neural-network Processing Unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.

[0127] Among them, 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 operation code and timing signals to complete the control of fetching instructions and executing instructions.

[0128] It can be understood that the processor 110 may further include an AE system. The AE system can be specifically set in the ISP. The AE system can be used to implement automatic adjustment of exposure parameters. Optionally, the AE system can also be integrated in other processor chips. The embodiments of the present application do not limit this.

[0129] In the embodiments provided by the present application, the electronic device 100 can execute the above display screen calibration method through the processor 110.

[0130] A memory can also be set in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can save the instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can directly call it 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 that conforms to the USB standard specification, and can specifically be 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 transmission between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. This interface can also be used to connect other electronic devices 100, such as AR devices, etc.

[0132] The charging management module 140 is used to receive 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 the input from the battery 142 and / or the charging management module 140 to supply power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160, etc.

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

[0135] Antenna 1 and Antenna 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas.

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

[0137] The modulation and demodulation processor can include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Subsequently, the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (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 communications including Wireless Local Area Networks (WLAN) (such as Wireless Fidelity (Wi-Fi) networks), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), etc. applied to the electronic device 100. 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 through Antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be transmitted from the processor 110, perform frequency modulation and amplification on it, and convert it into electromagnetic waves through Antenna 2 for radiation.

[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, such that electronic device 100 can communicate with a network and other devices through wireless communication technologies.

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

[0141] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may adopt a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini LED, a Micro LED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.

[0142] In some embodiments of the present application, the original W color coordinates (i.e., the original white point color coordinates) may be burned into the chip of the display screen.

[0143] Electronic device 100 can implement an acquisition function through an ISP, camera 193, video codec, GPU, display screen 194, and application processor, etc.

[0144] The ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light passes through the lens and is transmitted to the camera sensor. The optical signal is converted into an electrical signal, and the camera sensor transmits the electrical signal to the ISP for processing and converts it into a visible image or video. The ISP can also perform algorithm optimization on the noise and brightness of the image. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP may be provided in camera 193.

[0145] The camera 193 is used to capture static images or videos. An object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a Charge Coupled Device (CCD) or a Complementary Metal-Oxide-Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to be converted into a digital image or video signal. The ISP outputs the digital image or video signal to the DSP for processing. The DSP converts the digital image or video signal into an image or video signal in standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1. For example, in some embodiments, the electronic device 100 may use N cameras 193 to obtain images with multiple exposure coefficients. Furthermore, in video post-processing, the electronic device 100 may synthesize an HDR image according to the images with multiple exposure coefficients through HDR technology.

[0146] The digital signal processor is used to process digital signals. In addition to processing digital images or video signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, etc.

[0147] The video codec is used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple coding formats, such as: Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0148] The NPU is a Neural-Network (NN) computing processor. By learning from the structure of biological neural networks, such as learning from the transmission mode between human brain neurons, it can quickly process input information and can also continuously self-learn. Through the NPU, applications such as intelligent cognition of the electronic device 100 can be realized, such as: image recognition, face recognition, speech recognition, text understanding, etc.

[0149] The external memory 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 memory interface 120 to achieve the data storage function. For example, files such as music and videos are saved in the external memory card.

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

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

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

[0153] The speaker 170A, also called a "loudspeaker", is used to convert an audio electrical signal into a sound signal.

[0154] The receiver 170B, also called an "earpiece", is used to convert an audio electrical signal into a sound signal.

[0155] The microphone 170C, also called a "microphone", a "transmitter", is used to convert a sound signal into an electrical signal. The electronic device 100 can be provided with at least one microphone 170C.

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

[0157] The sensor module 180 can include one or more sensors, and these sensors can be of the same type or different types. It can be understood that Figure 7 The shown sensor module 180 is only an exemplary division method, and there may be other division methods. This application does not limit this.

[0158] The pressure sensor 180A is used to sense a pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be provided on the display screen 194. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 can also calculate the position of the touch according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions.

[0159] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around 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 anti-shake shooting.

[0160] The barometric pressure sensor 180C is used to measure the barometric pressure. In some embodiments, the electronic device 100 calculates the altitude based on the barometric 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 leather case.

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

[0163] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance through infrared or laser. In some embodiments, in the shooting scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve rapid focusing.

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

[0165] The ambient light sensor 180L is used to sense the ambient light brightness.

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

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

[0168] The touch sensor 180K, also known as the "touch panel". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also known as the "touch display screen". The touch sensor 180K is used to detect touch operations acting thereon or nearby. 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 the display screen 194. In some other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, at a different position from that of the display screen 194.

[0169] In an embodiment of the present application, when the user uses the electronic device 100 for time-lapse photography or continuous shooting, a series of images need to be acquired. In the scenarios of time-lapse photography or continuous shooting, the electronic device 100 can adopt the AE mode. That is, the electronic device 100 automatically adjusts the AE value. During the process of previewing this series of images, if a touch operation by the user acts on the display screen 194, the touch AE mode may be triggered. In the touch AE mode, the electronic device 100 can adjust the brightness of the corresponding position on the display screen touched by the user and perform high-weight metering. When calculating the average brightness of the picture, the weight of the user's touch area is significantly higher than that of other areas, and the finally calculated average brightness of the picture is closer to the average brightness of the user's touch area.

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

[0171] The button 190 includes a power-on button, a volume button, etc. The button 190 can be a mechanical button or a touch button. The electronic device 100 can receive button inputs and generate key signal inputs related to the user settings and function controls of the electronic device 100.

[0172] The motor 191 can generate vibration prompts. The motor 191 can be used for incoming call vibration prompts and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects. Touch operations acting on different areas of the display screen 194 can also correspond to different vibration feedback effects for the motor 191. Different application scenarios (such as time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0173] The indicator 192 can be an indicator light and can be used to indicate the charging state, power change, and can also be used to indicate messages, missed calls, notifications, etc.

[0174] The SIM card interface 195 is used to connect to the SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact with and separation from 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 implement functions such as calls and data communication. In some embodiments, the electronic device 100 uses an eSIM, that is, 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 the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A data processing method, characterized in that, The method includes: The first device detects a first operation on the first device, and the first operation is used to trigger the display screen of the first device to turn on. The first device obtains data of N sectors, and the data of the N sectors corresponds to the display data when different areas of the display screen are lit. N is a positive integer. When it is detected that there is an error in the data of the N sectors, the first device determines the position of the data error through the sector address of the last written data read. The first device uses the backup data corresponding to the sector address to repair the error data.

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

3. The method according to claim 2, wherein The method further includes: Among the N sectors, after the current i-th sector finishes writing data and before the (i+1)-th sector writes data, the first device reads the address information of the (i+1)-th sector.

4. The method according to claim 3, characterized in that The reading of the address information of the current (i+1)-th sector includes: Among the N sectors, there is a preset time interval between writing data to the i-th sector and writing data to 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 3 or 4, characterized in that The first device determines the position of the data error through the sector address of the last written data read, including: The first device determines the sector address of the last written data according to the address information of the (i+1)-th sector read. The first device determines the position of the data error through 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 uses the backup data corresponding to the sector address to repair the error data, including: The first device determines the corresponding backup data according to the sector address of the last written data. The first device uses the corresponding backup data to repair the error data.

7. The method according to any one of claims 1-6, characterized in that, When it is detected that there is an error in the data of the N sectors, the first device determines the position of the data error through the sector address of the last written data read, including: When the main processor of the first device detects that there is an error in the data of the N sectors, the sector address of the last written data read is sent to the display driver chip DDIC of the first device. The DDIC enables communication and handshake with the flash memory of the first device. The DDIC determines the position of the data error based on the sector address of the last written data. The first device uses the backup data corresponding to the sector address to repair the error data, including: Based on the position of the data error, the DDIC uses the corresponding backup data to repair the error data in the flash memory.

8. The method according to any one of claims 1-7, characterized in that, When it is detected that there is an error in the data of the N sectors, the first device determines the position of the data error through the sector address of the last written data read, including: When it is detected that there is an error in the data of the N sectors and the number of sectors with error data is 1, the first device determines the location of the data error based on the sector address of the last written data read.

9. The method according to any one of claims 1-8, characterized in that, The display data includes one or more of the time when the display screen is lit, brightness, gray scale, picture, temperature, and frame rate.

10. The method according to any one of claims 1-9, characterized in that, The method further includes: The first device uses the repaired data for aging compensation and performs display screen lighting.

11. The method according to claim 10, wherein The first device uses the repaired data for aging compensation and performs display screen lighting, including: The first device calculates a corresponding compensation gain for the display data; The first device outputs a corresponding compensation target brightness for the display screen according to the compensation gain.

12. The method according to any one of claims 1-11, characterized in that, The method further includes: When it is detected that there is no error in the data of the N sectors, the first device uses the data of the N sectors for aging compensation and performs display screen lighting.

13. 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 call the computer program so that the electronic device executes the method according to any one of claims 1-12.

14. A computer storage medium, characterized in that, Including: Computer instructions; when the computer instructions run on an electronic device, the electronic device executes the method according to any one of claims 1-12.

Citation Information

Patent Citations

  • Method and device for processing faults of hard disk

    CN104484251A

  • Display device and its display method

    CN107329724A

  • Disk detection method and device, electronic equipment and machine readable storage medium

    CN111816239A

  • Memory resource utilization rate detection and memory allocation method and device

    CN114296634A

  • Method for accessing data sectors and processing an access failure in a hard disk drive

    CN1776817A