Data storage method, electronic device, and storage medium

By monitoring the display duration of the display device and the write cycle of the storage space, data is transferred from the storage space with degraded performance to the backup space in a timely manner, solving the display abnormality caused by the limited number of non-volatile memory erases, and achieving stable brightness compensation for the display screen and extending its service life.

WO2025138727A1PCT designated stage expired Publication Date: 2025-07-03HONOR DEVICE CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/106149
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-29
Filing Date
2024-07-18
Publication Date
2025-07-03

AI Technical Summary

Technical Problem

The number of times the nonvolatile memory is erased is limited. When the storage performance deteriorates, the stored display data is abnormal, which affects the display brightness compensation of the electronic device, resulting in display abnormality.

Method used

By monitoring the display time of the electronic device and the writing cycle of the storage space, the number of erasing times of the storage space is determined. When the preset number is reached, the data is transferred from the first storage space to the second storage space for storage, and data verification is performed to ensure data consistency and avoid abnormal storage performance.

Benefits of technology

It effectively avoids the loss or error of display data caused by abnormal storage performance, extends the service life of the display, and ensures the normal brightness compensation and display effect of the display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024106149_03072025_PF_FP_ABST
    Figure CN2024106149_03072025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of data storage, and provides a data storage method, an electronic device, and a storage medium. In the method of the embodiments of the present application, on the basis of a display duration and the cycle of writing display data into a first storage space, an electronic device can determine the number of times of writing data into the first storage space, so that on the basis of the number of times of writing data into the first storage space, the electronic device can determine whether the storage performance of the first storage space is abnormal. When the storage performance of the first storage space is abnormal, the display data in the first storage space can be transferred to a second storage space for storage, the first storage space is replaced with the second storage space, and display data of the electronic device during subsequent display is stored by means of the second storage space. In this way, display data loss or errors caused by a storage performance anomaly in the first storage space can be prevented, thereby avoiding abnormal brightness compensation for aged pixel units on a display screen of the electronic device, ensuring normal display of the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Data storage method, electronic device, and storage medium

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on December 29, 2023, with application number 202311864567.9 and application name “Data Storage Method, Electronic Device and Storage Medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of data storage technology, and in particular to a data storage method, electronic device, and storage medium. Background Art

[0003] To prevent data loss, electronic devices typically store important data in non-volatile memory (e.g., flash memory). This prevents loss of important data after a power outage, which could cause the device to malfunction. However, non-volatile memory has a limited number of read and write cycles. When this limit is reached, the storage performance of the non-volatile memory degrades, causing the stored data to become malfunctioning, thereby impacting the services processed based on that data.

[0004] For example, some mobile phones continuously write display data (e.g., brightness, temperature, frame rate, etc.) (also known as "anti-burn-in data") to the flash memory of the display driver integrated circuit (DDIC) for storage during the display process. The DDIC then reads this display data from the flash memory and uses it to compensate for the brightness of aging pixels on the mobile phone's display. However, if the DDIC's flash memory is overwritten and erased too many times, its storage performance will deteriorate, causing the stored display data to deteriorate. This, in turn, causes the DDIC to perform abnormal brightness compensation for aging pixels on the mobile phone's display, leading to abnormal display performance.

[0005] Summary of the Invention

[0006] Some embodiments of the present application provide a data storage method, an electronic device, and a computer-readable storage medium. The present application is introduced from multiple aspects below, and the embodiments and beneficial effects of the following aspects can be referenced to each other.

[0007] In a first aspect, the present application provides a data storage method for an electronic device, the electronic device including a first storage space and a second storage space, the method including: writing first display data to the first storage space; determining that a first number of times data is written to the first storage space is greater than a preset number, wherein the first number is determined based on the duration of the display screen of the electronic device and the first cycle of writing data to the first storage space when the electronic device displays the screen; and transferring the first display data to the second storage space.

[0008] It is understood that the preset number of times may be any number of data writes before the storage performance of the first storage space becomes abnormal, such as 400,000 times, 500,000 times, etc. The first number may be the ratio of the duration of the electronic device displaying an image to the first period of writing data to the first storage space when the electronic device displays the image.

[0009] The first number of times the display screen of the electronic device is displayed and the first period of writing data to the first storage space when the electronic device displays the screen can be accurately determined, that is, the number of erasures. When the number of erasures in the first storage space is greater than the preset number, the electronic device can transfer the display data in the first storage space to the second storage space for storage. In this way, the electronic device can accurately determine the time when an abnormality occurs in the first storage space, and when an abnormality occurs in the first storage space, the second storage space stores the display data of the electronic device, thereby avoiding abnormal storage performance of the first storage space, resulting in abnormality in the stored display data, abnormal brightness compensation of the display screen of the electronic device, and further abnormal display of the display screen of the electronic device.

[0010] The first display data may be display data when the electronic device displays a picture before the electronic device transfers the first storage space to the second storage space.

[0011] In some implementations, the method further includes: acquiring second display data, and storing the second display data in a second storage space.

[0012] After the first display data stored in the first storage space is transferred to the second storage space, the first storage space can be replaced with the second storage space, and the second display data in the subsequent display process of the electronic device can be stored in the second storage space to avoid abnormality of the stored display data.

[0013] The second display data may be display data when the electronic device displays a picture after the electronic device transfers the display data in the first storage space to the second storage space.

[0014] In some embodiments, the display data is used to compensate for the brightness of the display screen.

[0015] In some embodiments, the display data includes at least one of the following: brightness, grayscale, temperature, and frame rate.

[0016] During the display process of an electronic device, the electronic device can determine the compensation voltage of the aged pixel unit of the display screen of the electronic device based on display data such as brightness, grayscale, temperature, and frame rate, and then compensate the aged pixel unit with the compensation voltage so that the brightness of the aged pixel unit reaches the brightness before aging, thereby achieving brightness compensation for the display screen of the display screen.

[0017] In some embodiments, the first cycle is a cycle for writing display data into the first storage space when the electronic device displays a picture.

[0018] In some embodiments, the first storage space and the second storage space are set in a first storage medium of the electronic device.

[0019] In some embodiments, the first storage space is set in a first storage medium of the electronic device, and the second storage space is set in a second storage medium of the electronic device.

[0020] In some embodiments, the first storage medium and the second storage medium are disposed in a first chip of the electronic device.

[0021] In some embodiments, the first storage medium is disposed in a first chip of the electronic device, and the second storage medium is disposed in a second chip of the electronic device.

[0022] In some embodiments, the first chip includes a display driver chip, and the second chip includes a system-on-chip.

[0023] In some embodiments, transferring the first display data to the second storage space includes: verifying the first display data transferred to the second storage space to obtain a verification result; the verification result indicates that the first display data in the second storage space is abnormal, and re-transferring the first display data in the first storage space to the second storage space.

[0024] After the electronic device transfers the display data in the first storage space to the second storage space, it can verify the transferred display data to the second storage space to determine whether the transferred display data is consistent with the display data in the first storage space before the transfer. If so, it is determined that the transferred display data is normal; if not, it is determined that the transferred display data is abnormal.

[0025] For example, the electronic device may use a verification method such as a cyclic redundancy check (CRC), a checksum, a hash check, or an error correction code (ECC) to verify the display data transferred to the second storage space to determine whether the display data transferred to the second storage space is abnormal. If the electronic device determines that the display data transferred to the second storage space is abnormal, it is necessary to re-transfer the display data in the first storage space to the second storage space.

[0026] In a second aspect, embodiments of the present application provide an electronic device, comprising: a memory for storing instructions executed by one or more processors of the electronic device; and a processor, which, when executing the instructions in the memory, causes the electronic device to perform the method described in the first aspect of the present application. The beneficial effects achieved by the second aspect can be referenced to the beneficial effects of the method provided in any embodiment of the first aspect and are not further elaborated here.

[0027] In a third aspect, embodiments of the present application provide a computer-readable storage medium having instructions stored thereon. When executed on a computer, the instructions cause the computer to perform the method described in any embodiment of the first aspect. The beneficial effects achieved in the third aspect can be referenced to the beneficial effects of the method described in any embodiment of the first aspect and are not further elaborated here.

[0028] In a fourth aspect, embodiments of the present application provide a computer program product, comprising a computer program (also referred to as code or instructions) that, when executed, causes a computer to perform the method of any possible implementation of the first aspect. The beneficial effects achieved in the fourth aspect can be referenced to the beneficial effects of the method provided in any embodiment of the first aspect and are not further elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] FIG1 is an exemplary application scenario of the present application;

[0030] FIG2 is a structural diagram of an electronic device provided in an embodiment of the present application;

[0031] FIG3 is a flowchart illustrating a data storage method according to an embodiment of the present application;

[0032] FIG4 shows a structural diagram of another electronic device provided in an embodiment of the present application;

[0033] FIG5 shows a structural example diagram of another electronic device provided in an embodiment of the present application;

[0034] FIG6 shows a structural example diagram of another electronic device provided in an embodiment of the present application;

[0035] FIG7 shows a structural comparison example diagram of an electronic device applicable to the technical solution of the present application;

[0036] FIG8 shows a structural diagram of another electronic device provided in an embodiment of the present application;

[0037] FIG9 shows a structural diagram of another electronic device provided in an embodiment of the present application;

[0038] FIG10 is an example diagram of the hardware and software system architecture of an electronic device provided in an embodiment of the present application;

[0039] FIG11 shows a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0040] The embodiment of the present application is used to provide a data storage method. The data storage method of the embodiment of the present application is introduced below.

[0041] The technical solution of the present application is applicable to various electronic devices with display screens, such as mobile phones, tablets, large-screen devices, wearable devices (for example, watches, smart glasses, helmets), computers, augmented reality (AR) / virtual reality (VR) devices, etc., without any limitation.

[0042] The display screen of the electronic device of the present application can be an organic light-emitting diode (OLED) screen, an active-matrix organic light-emitting diode (AMOLED) screen, etc., or it can also be other screens that use organic light-emitting materials to emit light.

[0043] The following describes the technical solution of this application using a mobile phone with an OLED screen as an example of an electronic device.

[0044] FIG1 is an exemplary application scenario of the present application.

[0045] 1 , the electronic device 100 includes a display screen 10. The display screen 10 is an OLED screen. The core component of the OLED screen includes an electroluminescent (EL) circuit. The EL circuit is composed of an electron transport layer, a hole transport layer, and a light-emitting layer. When the OLED screen is working, the EL circuit drives the organic material of each pixel unit in the light-emitting layer to change its molecular structure under the action of current and voltage, so as to release photons and achieve the effect of luminescence. However, as the use time increases, the organic materials of some pixel units in the light-emitting layer may gradually age and degrade, causing the brightness, color and other parameters of the screen to change, thereby affecting the display effect, such as dimming, local image retention, etc.

[0046] For example, as shown in FIG1 , after aging, the pixel units in the display area 11 of the display screen 10 of the electronic device 100 may have a lower brightness than before aging, causing display abnormalities on the display screen 10 and affecting user experience. In this case, the electronic device 100 may perform voltage compensation on the pixel units in the display area 11 to drive the aged pixel units with a higher voltage so that the aged pixel units can reach the brightness before aging.

[0047] For example, the pixel units in the display area 11 on the display screen 10 of the electronic device 100 can originally reach 200 nits when driven by a 3V voltage. After the pixel units in the display area 11 of the display screen 10 of the electronic device 100 age, the pixel units in the display area 11 can only reach 150 nits when driven by a 3V voltage, and need to be driven by 3.5V to reach a brightness of 200 nits. In this case, the electronic device 100 can provide an additional 0.5V compensation voltage to the pixel units in the display area 11 of the display screen 10 through the voltage compensation circuit, and drive the brightness of the pixel units in the display area 11 on the display screen 10 to 200 nits by a 3.5V voltage, so that the pixel units in the display area 11 on the display screen 10 are restored to the brightness before aging.

[0048] The voltage compensation principle of the aging pixel unit is introduced below.

[0049] FIG2 is a structural diagram illustrating an electronic device according to an embodiment of the present application.

[0050] As shown in Figure 2, electronic device 100 includes display 10 and DDIC 20. DDIC 20 includes static random access memory (SRAM) 21, flash memory 22, and an intellectual property core (IP) circuit 23 (also known as an anti-burn-in circuit). SRAM 21 is connected to flash memory 22 and IP core circuit 23, respectively. IP core circuit 23 is connected to display 10.

[0051] It is understood that the SRAM 21 is a volatile memory and the data stored therein will be lost when the power is turned off, while the flash 22 is a non-volatile memory and the data stored therein will not be lost when the power is turned off.

[0052] When the display screen 10 of the electronic device 100 is in the bright screen state, the electronic device 100 continuously writes the display data of the display screen 10 (e.g., brightness, grayscale, temperature, frame rate, etc.) to the SRAM 21, which acts as a buffer. The display data in the SRAM 21 is then written to the flash memory 22 for storage to prevent loss of the display data on the display screen 10 when the electronic device 100 is powered off. After the display data of the display screen 10 is written to the flash memory 22, when the DDIC 20 performs brightness compensation on degraded pixels on the display screen 10, the IP core circuit 23 can read the display data of the display screen 10 from the flash memory 22 via the SRAM 21. Based on the read display data, the IP core circuit 23 can then identify degraded pixels on the display screen 10 and calculate the voltage required to compensate for the degraded pixels (referred to as the "compensation voltage"). The IP core circuit 23 can then provide the calculated compensation voltage to the degraded pixels, driving them to emit light at a higher voltage, so that the degraded pixels reach their pre-degraded brightness level, thereby preventing display abnormalities on the display screen 10.

[0053] As you can understand, the principle of flash data storage is primarily based on charge storage and erasure operations. Flash memory is composed of specialized floating-gate field-effect transistors (FETs). Each memory cell consists of a floating gate and two silicon dioxide layers. The floating gate is a nitride layer sandwiched between two silicon dioxide layers, used to store charge. Binary data can be stored by varying the charge level within the memory cell. Writing data to flash memory is accomplished by applying a high voltage to the memory cell. When the voltage is applied to the memory cell, electrons are injected into the floating gate, changing the charge level. A high charge level indicates a stored "1," while a low charge level indicates a stored "0." As the number of flash erase and write cycles increases, electrons leak from the floating gate, reducing the charge level and degrading the flash storage performance, affecting data reliability and read and write speeds. Flash memory has a limited erase and write cycle life, typically ranging from tens of thousands to millions. Typically, after 500,000 write cycles, flash storage performance begins to decline.

[0054] Based on the above principles, if flash memory 22 writes display data too many times, its storage performance may degrade, and the stored display data may become abnormal, such as lost or erroneous. In this case, the IP core circuit 23 reads abnormal display data from flash memory 22, causing deviations in the compensation voltage calculated by the IP core circuit 23. This can cause the DDIC 20 to under-compensate or over-compensate for aging pixels on the display screen 10, resulting in display abnormalities on the display screen 10 of the electronic device 100.

[0055] To avoid abnormal storage of display data due to abnormal storage performance of flash 22, in some embodiments, when the electronic device 100 determines that the number of times the display data is written into flash 22 reaches the data writing number at which the storage performance of flash 22 begins to decline (e.g., 400,000 times, 500,000 times, etc.), the display data stored in flash 22 can be moved to other storage spaces for storage.

[0056] However, the DDIC 20 is not provided with a logic circuit for counting the number of read and write operations of the flash 22 , and thus cannot determine the number of times the flash 22 writes display data, and thus cannot determine whether the storage performance of the flash 22 is abnormal.

[0057] In order to solve the above technical problems, an embodiment of the present application provides a data storage method. In the data storage method of the embodiment of the present application, during the display process of the electronic device, the electronic device periodically writes display data into the first storage space for storage. The number of times the display data is written to the first storage space can be determined based on the display duration of the electronic device and the period of writing the display data in the first storage space. Then, when the number of times the display data is written to the first storage space is greater than a preset number (for example, the number of data writes when the storage performance of the first storage space begins to decline), the electronic device can transfer the display data in the first storage space to the second storage space for storage. In this way, the electronic device can accurately determine the time when the first storage space is abnormal, and when the first storage space is abnormal, the second storage space stores the display data of the electronic device, thereby avoiding the abnormality of the stored display data due to the abnormal storage performance of the first storage space, resulting in abnormal brightness compensation of the display screen of the electronic device, and then causing the display screen of the electronic device to display abnormally.

[0058] In some embodiments, the number of times the display data is written into the first storage space may be a ratio of the display duration of the electronic device to a period of writing the display data into the first storage space. The display duration may be a cumulative screen-on duration of the electronic device.

[0059] It is understood that display data includes, but is not limited to, display parameters such as brightness, grayscale, temperature, and frame rate during the display process of an electronic device's display screen. Display data is used to compensate for the brightness of an image displayed on the electronic device's display screen. For example, the electronic device can determine a compensation voltage for aged pixel units on the display screen based on the display data and then provide this compensation voltage to the aged pixel units, causing the aged pixel units to reach their pre-aging brightness level when driven by a higher voltage, thereby compensating for the brightness of the image displayed on the display screen.

[0060] It is understood that the first storage space and the second storage space can be set in the same storage medium or in different storage media. For example, the first storage space and the second storage space are both set in the first storage medium. Alternatively, the first storage space is set in the first storage medium and the second storage space is set in the second storage medium.

[0061] It is understood that the first storage medium and the second storage medium can be provided in the same chip of the electronic device, or can be provided in different chips of the electronic device. For example, the first storage medium and the second storage medium are both provided in a first chip (e.g., a DDIC chip, etc.). Alternatively, the first storage medium is provided in the first chip, and the second storage medium is provided in a second chip (e.g., a system on a chip (SOC)).

[0062] It can be understood that the first storage medium and the second storage medium can be non-volatile storage media, such as flash, read only memory (ROM), phase change memory (PCM), resistive random-access memory (RRAM), spin-transfer torque RAM (STT-RAM), etc.

[0063] The specific embodiments of this application are introduced below.

[0064] FIG3 is a flowchart illustrating an exemplary data storage method according to an embodiment of the present application.

[0065] S101: The electronic device writes first display data into a first storage space.

[0066] In the embodiment of the present application, the display screen of the electronic device is a screen made of organic light-emitting materials, such as an OLED screen, an AMOLED screen, etc.

[0067] When the display screen of the electronic device is on, the electronic device may write first display data of the display screen into the first storage space for storage.

[0068] S102: The electronic device determines that a first number of times display data is written into the first storage space is greater than a preset number, wherein the first number is determined according to the display duration of the electronic device and a first cycle of writing display data into the first storage space.

[0069] It is understandable that the preset number of times may be any number of data writes before the storage performance of the first storage space becomes abnormal, such as 400,000 times, 500,000 times, etc., and there is no limitation on this.

[0070] In some embodiments, the electronic device may count the number of times the screen of the electronic device is turned on and the duration of each screen turn on time, and then calculate the display duration of the electronic device using the following formula (1).

[0071] Among them, T is the display time of the electronic device, n is the number of times the electronic device turns on the screen, and t n The duration of the screen being on for the electronic device when it is turned on for the nth time.

[0072] In some embodiments, when the electronic device satisfies the following inequality (2), it can be determined that the first number of times the display data is written into the first storage space is greater than a preset number. a *count(2)

[0073] Among them, t aThe first cycle (eg, 10ms, 15ms, 20ms, etc., not limited thereto) for writing display data into the first storage space, and count is a preset number of times (eg, 400,000 times, 500,000 times, etc., not limited thereto).

[0074] Furthermore, the above formula (2) can be transformed into the following inequality (3):

[0075] in, The display data is written into the first storage space a first number of times.

[0076] S103: The electronic device transfers the first display data in the first storage space to the second storage space.

[0077] After the electronic device determines that the first number of times display data is written into the first storage space is greater than a preset number, the first display data in the first storage space can be moved to the second storage space for storage to avoid loss or error of the stored first display data due to degradation of storage performance of the first storage space.

[0078] For example, FIG4 shows a structural example diagram of an electronic device 100'. Referring to FIG4 , based on the electronic device 100 shown in FIG2 above, the electronic device 100' is additionally provided with a flash 22'. The electronic device 100' may first use the storage space of flash 22 (as an example of a first storage space) to store display data. Then, when the electronic device 100' determines that the first number of times the storage space of flash 22 writes display data is greater than a preset number, the display data stored in the storage space of flash 22 may be transferred to the storage space of flash 22' (as an example of a second storage space) for storage, so as to avoid abnormality in the stored display data due to abnormal storage performance of flash 22.

[0079] For another example, FIG5 shows a structural example diagram of another electronic device 100'. Referring to FIG5, based on the electronic device 100 shown in FIG2 above, the electronic device 100' divides the storage space of the flash 22 into multiple storage spaces: storage space A1, storage space A2, ... The electronic device 100' can first use the storage space A1 (as an example of a first storage space) to store the display data of the electronic device 100'. Then, when the electronic device 100' determines that the storage performance of the storage space A1 is abnormal, the display data in the storage space A can be transferred to the storage space B (as an example of a second storage space) for storage, so as to avoid abnormal storage of the display data due to the abnormal storage performance of the storage space A of the flash 22.

[0080] As another example, FIG6 shows a structural example diagram of another electronic device 100'. Referring to FIG6, based on the electronic device 100 shown in FIG2 above, the electronic device 100' further includes an application processor (AP) 30, wherein the AP 30 includes a ROM 31. The electronic device 100' may first use the storage space of the flash memory 22 (as an example of a first storage space), and then, when the electronic device 100' determines that the storage performance of the flash memory 22 is abnormal, the display data in the storage space of the flash memory 22 may be transferred to the storage space of the ROM 31 of the AP 30 (as an example of a second storage space) for storage, so as to avoid abnormal storage of the display data due to the abnormal storage performance of the flash memory 22.

[0081] S104: The electronic device determines whether the first display data transferred to the second storage space is abnormal. If so, step S103 is executed. If not, step S105 is executed.

[0082] In some embodiments, after the electronic device transfers display data from the first storage space to the second storage space, it can verify the transferred display data to the second storage space to determine whether the transferred display data is consistent with the display data in the first storage space before the transfer. If so, it is determined that the transferred display data is normal; if not, it is determined that the transferred display data is abnormal.

[0083] For example, the electronic device may use a verification method such as CRC, checksum, hash check, ECC, etc. to verify the display data transferred to the second storage space to determine whether the display data transferred to the second storage space is consistent with the display data in the first storage space before the transfer. If the electronic device determines that the display data transferred to the second storage space is inconsistent with the display data in the first storage space before the transfer, it is necessary to re-transfer the display data in the first storage space to the second storage space.

[0084] S105: The electronic device replaces the first storage space with the second storage space.

[0085] After the electronic device determines that the display data transferred to the second storage space is normal, the electronic device can replace the first storage space with the second storage space and no longer use the first storage space. After replacing the first storage space with the second storage space, the electronic device can obtain the second display data of the subsequent display screen and then store the second display data in the second storage space to avoid data abnormalities.

[0086] In an embodiment of the present application, the electronic device can determine the number of times the display data is written to the first storage space based on the display duration and the period of writing the display data to the first storage space, thereby judging whether the storage performance of the first storage space is abnormal based on the number of times the display data is written to the first storage space. Furthermore, when it is judged that the storage performance of the first storage space is abnormal, the display data in the first storage space is transferred to the second storage space without abnormality for storage, and the second storage space is used to store the display data in the subsequent display process of the electronic device. In this way, it is possible to avoid abnormal storage performance of the first storage space, resulting in abnormal storage of display data, thereby causing abnormal brightness compensation of the display screen of the electronic device, and further causing abnormal display of the display screen of the electronic device.

[0087] To facilitate understanding, the technical solution of this application is introduced below with reference to specific examples.

[0088] FIG7 shows a structural comparison example diagram of an electronic device applicable to the technical solution of the present application.

[0089] 7 , electronic device 100 includes system memory (system DRAM) 40, a system on chip (SOC) 50, a DDIC 20, and a display screen 10. Specifically, SOC 50 includes a data processing unit (DPU) 51. DPU 51 includes a pipe 71 and a mobile industry processor interface (MIPI) 72. DDIC 20 includes SRAM 21, flash 22, IP core circuit 23, and MIPI 24. IP core circuit 23 includes a deburn-in gain circuit 73 and a deburn-in sample circuit 74. System memory 40, pipe 71 of DPU 51, MIPI 72 of DPU 51, MIPI 24 of DDIC 20, compensation circuit 73 of IP core circuit 32, sampling circuit 74 of IP core circuit 23, and display screen 10 are connected in sequence. Furthermore, the compensation circuit 73 of the IP core circuit 23 , the sampling circuit 74 of the IP core circuit 23 and the SRAM 21 are connected in a ring manner. The SRAM 21 is connected to the flash 22 .

[0090] After the application on electronic device 100 draws an image, it stores the drawn image data in system memory 40. Then, DPU 51 of SOC 50 on electronic device 100 continuously reads the image data from system memory 40 and transmits it to IP core circuit 23 via pipe 71 of DPU 51, MIPI 72 of DPU 51, and MIPI 24 of DDIC 20. The image data is converted from a digital signal into an analog signal after passing through compensation circuit 73 and sampling circuit 74 of IP core circuit 23. DDIC 20 then uses the converted analog signal to drive display screen 10 for display.

[0091] During the display screen 10 display process of the electronic device 100, the electronic device 100 continuously collects display data of the display screen 10, such as brightness, temperature, grayscale, frame rate, etc., and stores the collected display data in the system memory 40. Then, the DPU 51 of the SOC 50 on the electronic device 100 obtains the display data of the display screen 10 from the system memory 40 and transmits it to the sampling circuit 74 through the pipe 71, MIPI 72, MIPI 24 and compensation circuit 73 in sequence. The sampling circuit 74 periodically samples the display data and then writes the sampled display data to the flash 22 for storage via the SRAM 21.

[0092] After the display data of the display screen 10 of the electronic device 100 is stored in the flash 22, when the DDIC 20 performs brightness compensation on the aged pixel units on the display screen 10, the display data in the flash 22 can be transmitted back to the compensation circuit 73 of the IP core through the SRAM 21. The compensation circuit 73 determines a corresponding compensation voltage based on the display data, and then provides the compensation voltage to the aged pixel units on the display screen 10 through the sampling circuit 74 to perform brightness compensation on the aged pixel units on the display screen 10.

[0093] However, as mentioned above, the number of times the flash 22 can be erased and written is limited. When the flash 22 writes display data too many times, the stored display data will become abnormal, thereby causing abnormal brightness compensation of the display screen 10 of the electronic device 100, causing the display screen 10 of the electronic device 100 to display abnormal aging phenomena, such as dimness, partial image retention, etc., which affects the service life of the display screen 10.

[0094] Based on this, electronic device 100' adds flash memory 22' within DDIC 20 as a backup. While display screen 10 is displaying, electronic device 100 counts the display duration of display screen 10 and stores it in system memory 40. The DPU 51 in SOC 50 then reads the display duration of display screen 10 from system memory 40 and transmits it to IP core circuit 23 via MIPI 72 and DDIC 20's MIPI 24. IP core circuit 23 then calculates the number of times flash memory 22 writes display data based on the display duration of display screen 10 and the cycle for writing display data to flash memory 22. When the number of times flash memory 22 writes display data exceeds a preset number, DDIC 20 replaces flash memory 22 with flash memory 22' and transfers the display data from flash memory 22 to flash memory 22' for storage. This prevents abnormalities in the stored display data and extends the service life of display screen 10. For example, adding a flash 22 ′ with the same specifications as the flash 22 to the electronic device 100 can extend the service life of the display screen 10 of the electronic device 100 by 2 times.

[0095] In other embodiments, more flashes may be added to the DDIC 20 to further extend the service life of the display screen 10. The principle is the same as that described above and will not be repeated here.

[0096] In other embodiments, the electronic device 100 ′ described in FIG. 7 may be modified to achieve the same effect as the electronic device 100 ′.

[0097] For example, referring to FIG8 , electronic device 100′ does not include flash memory in DDIC 20, but instead divides flash memory 22 into multiple storage spaces: storage space A1, storage space A2, etc. When the number of times display data is written to storage space A1 of flash memory 22 exceeds a preset number, storage space A1 can be replaced with storage space A2, and the display data in storage space A1 can be transferred to storage space A2 for storage.

[0098] 9 , the electronic device 100 ′ does not add a flash memory to the DDIC 20. Instead, when the number of times the flash memory 22 writes display data exceeds a preset number, the flash memory 22 is replaced by the ROM 31 of the AP 30 in the SOC 50, and the display data in the flash memory 22 is transferred to the ROM 31 of the AP 30 for storage.

[0099] The above only introduces the technical solution of the present application from the hardware level. The following introduces the technical solution of the present application in a combination of software and hardware.

[0100] FIG10 is a diagram illustrating an example of the hardware and software system architecture of an electronic device according to an embodiment of the present application.

[0101] As shown in FIG10 , the system includes a hardware abstract layer (HAL), a kernel layer, and a hardware layer.

[0102] The hardware abstraction layer includes the hardware composer service, the display service, and the original equipment manufacturer information (OEMinfo) service. The hardware composer service is responsible for display status management, image synthesis, and image delivery. The display service is responsible for DDIC status management and policy decisions for the anti-burn-in algorithm. The OEMinfo service is responsible for data storage, factory data security, and upgrade and restore operations.

[0103] The kernel layer includes display drivers and file drivers. Display drivers are responsible for display hardware driving and MIPI command transmission and reception, while file drivers are responsible for storing kernel drivers.

[0104] The hardware layer includes the display driver integrated circuit (DDIC) and system memory. The DDIC is responsible for driving the display, storing display data, and performing brightness compensation based on the display data. The system memory is responsible for storing user behavior data, screen on times, screen on duration, and other data.

[0105] The data storage method of an embodiment of the present application is described below with reference to the example diagram of the hardware and software system architecture of an electronic device shown in FIG10 .

[0106] Referring to FIG10 , the method includes the following steps:

[0107] S1: The hardware compositor service sends display data to the display driver.

[0108] During the display process of the electronic device, the hardware compositor service may send the display data of the electronic device to the display driver.

[0109] S2: The display driver sends display data to the DDIC.

[0110] After receiving the display data sent by the hardware composition service, the display driver can send the display data to the DDIC, which writes the display data into its own flash for storage.

[0111] S3: The display service notifies the display driver to enable the anti-burn-in function.

[0112] The anti-burn-in function is a function that compensates the brightness of the display screen of an electronic device.

[0113] When an electronic device needs to perform brightness compensation on the display screen, the display service can notify the display driver to enable the anti-burn-in function.

[0114] S4: The display driver notifies the DDIC to enable the anti-burn-in function of the IP core circuit.

[0115] After receiving the notification from the display service, the display driver can notify the DDIC to enable the anti-burn-in function of the IP core circuit.

[0116] S5: The hardware compositor service synchronizes the display duration to the display service.

[0117] During the display process of the electronic device, the hardware synthesizer service can count the display duration of the electronic device and synchronize the display duration to the display service.

[0118] S6: Display service notification OEMinfo service storage display duration.

[0119] After receiving the display duration synchronized by the hardware synthesizer service, the display service can notify the OEMinfo service to store the display duration of the electronic device and synchronize the display duration with the OEMinfo service. The OEMinfo service then calls a file driver to store the display duration of the electronic device in a non-erasable partition of the system memory, such as the system partition or boot partition, so that the display duration will not be erased even if the user restores the factory settings or restarts the electronic device. Alternatively, the display duration of the electronic device can be stored in other non-volatile memory, such as ROM or programmable read-only memory (PROM).

[0120] S7: The OEMinfo service sends the display duration to the display service.

[0121] When performing brightness compensation on the display screen of an electronic device, the display service can notify the OEMinfo service to read the display duration. After receiving the notification from the display service, the OEMinfo service can call the file driver to read the display duration of the electronic device from the system memory and send the duration to the display service.

[0122] S8: The display service notifies the display driver to turn off the anti-burn-in function.

[0123] After receiving the display duration from the OEMinfo service, the display service calculates the number of times the flash writes display data based on the display duration and the DDIC's flash write cycle. If the number of flash writes exceeds a preset number, the display service notifies the display driver to disable the anti-burn-in feature.

[0124] S9: The display driver notifies the DDIC to disable the anti-burn-in function of the IP core circuit and move the display data.

[0125] After the display driver receives notification from the display service to disable the burn-in protection function, it can notify the DDIC to disable the IP core's burn-in protection function and move the display data stored in the flash memory to the backup flash memory for storage. For example, the data stored in flash memory 22 of DDIC 20 in electronic device 100' shown in Figure 7 can be moved to flash memory 22' for storage.

[0126] S10: After the display service verifies that there is no abnormality in the moved display data, it notifies the display driver to restart the anti-burn-in function.

[0127] After the DDIC moves the display data from the flash to the backup flash, the display service can verify the display data moved to the backup flash. If the verification result indicates that there are no abnormalities in the moved display data, the display service can notify the display driver to restart the anti-burn-in function.

[0128] S11: The display driver notifies the DDIC to restart the anti-burn-in function of the IP core circuit.

[0129] After the display driver receives the notification sent by the display service to restart the anti-burn-in function, the display driver can notify the DDIC to restart the anti-burn-in function of the IP core circuit, so that the DDIC restarts the anti-burn-in function of the IP core circuit and uses the backup flash to store the display data of the electronic device.

[0130] Figure 11 shows a schematic diagram of the structure of an electronic device 100'. 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, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 10, and a subscriber identification module (SIM) card interface 195. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air 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.

[0131] The internal memory 121 may be the first storage medium or the second storage medium mentioned in this application, and is used to store display data of the electronic device 100 ′.

[0132] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100'. In other embodiments of the present application, the electronic device 100' may include more or fewer components than shown, or may combine or separate certain components, or may have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0133] The processor 110 may include one or more processing units, such as an AP, a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). In some embodiments, the processor 110 may include one or more interfaces, such as an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, and a SIM interface.

[0134] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100'. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.

[0135] 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 and provides power to the processor 110, the internal memory 121, the display 10, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0136] The wireless communication function of the electronic device 100 ′ can be implemented by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , the modem processor, and the baseband processor.

[0137] 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 a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0138] 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 receive electromagnetic waves through the antenna 1, and filter, amplify and process the received electromagnetic waves, and 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 for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0139] The modem processor may include a modulator and a demodulator. 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. The demodulator then 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 passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 10. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0140] The wireless communication module 160 can provide wireless communication solutions 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., which are applied to the electronic device 100'. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters 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 sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0141] 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 the network and other devices through wireless communication technology.

[0142] Electronic device 100' implements display functions through a GPU, display screen 10, and an application processor. The GPU is a microprocessor for image processing that connects display screen 10 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 modify display information.

[0143] The display screen 10 is used to display images, videos, etc. The display screen 10 includes a display panel. In some embodiments, the electronic device 100 ′ may include one or N display screens 10 , where N is a positive integer greater than one.

[0144] The electronic device 100 ′ can implement a shooting function through an ISP, a camera 193 , a video codec, a GPU, a display screen 10 , and an application processor.

[0145] 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 electronic device 100'. The external memory card communicates with processor 110 via external memory interface 120 to implement data storage. For example, files such as text messages and videos can be stored on the external memory card.

[0146] The internal memory 121 can be used to store computer executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. The program storage area may store an operating system, an application required for at least one function (such as an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100' (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, etc. The processor 110 executes various functional applications and data processing of the electronic device 100' by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.

[0147] The various embodiments disclosed in this application can be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device.

[0148] Program code can be applied to input instructions to perform the functions described herein and generate output information. The output information can be applied to one or more output devices in a known manner. For purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor, a microcontroller, an application specific integrated circuit, or a microprocessor.

[0149] Program code can be implemented with a high-level programming language or an object-oriented programming language to communicate with the processing system. Where necessary, program code can also be implemented in assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any particular programming language. In either case, the language can be a compiled language or an interpreted language.

[0150] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, instructions may be distributed over a network or through other computer-readable media. Therefore, a machine-readable medium may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including but not limited to a floppy disk, an optical disk, an optical disk, a magneto-optical disk, a read-only memory (ROM), a random access memory (RAM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic card or an optical card, a flash memory, or a tangible machine-readable memory for transmitting information (e.g., a carrier wave, an infrared signal, a digital signal, etc.) using the Internet in an electrical, optical, acoustic, or other form of propagation signal. Accordingly, machine-readable media includes any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, a computer).

[0151] In the accompanying drawings, some structural or method features may be shown in a particular arrangement and / or order. However, it should be understood that such a particular arrangement and / or order may not be required. Rather, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of a structural or method feature in a particular figure does not imply that such feature is required in all embodiments, and in some embodiments, such features may not be included or may be combined with other features.

[0152] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0153] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems raised by this application. In addition, in order to highlight the innovative part of this application, the above-mentioned device embodiments of this application do not introduce units / modules that are not closely related to solving the technical problems raised by this application. This does not mean that other units / modules do not exist in the above-mentioned device embodiments.

[0154] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "including a" does not exclude the presence of other identical elements in the process, method, article or device that includes the element.

[0155] While the present application has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the present application.

Claims

1. A data storage method for an electronic device, characterized in that, The electronic device includes a first storage space and a second storage space, and, the method includes: Writing first display data into the first storage space; Determining that a first number of times of writing data into the first storage space is greater than a preset number of times, where the first number of times is determined according to the duration of the display screen of the electronic device and a first period of writing data into the first storage space when the electronic device displays the screen; Transferring the first display data to the second storage space.

2. The method according to claim 1, characterized in that, The method further includes: Obtaining second display data and storing the second display data in the second storage space.

3. The method according to claim 1 or 2, characterized in that, The display data is used to compensate the brightness of the display screen of the electronic device.

4. The method according to claim 3, wherein The display data includes at least one of the following: brightness, grayscale, temperature, frame rate.

5. The method according to claim 1, wherein The first period is the period of writing the display data into the first storage space when the electronic device displays the screen.

6. The method according to claim 1, characterized in that The first storage space and the first storage space are provided in a first storage medium of the electronic device.

7. The method according to claim 1, characterized in that, The first storage space is provided in a first storage medium of the electronic device, and the second storage space is provided in a second storage medium of the electronic device.

8. The method according to claim 7, characterized in that The first storage medium and the second storage medium are provided in a first chip of the electronic device.

9. The method according to claim 7, wherein The first storage medium is provided in a first chip of the electronic device, and the second storage medium is provided in a second chip of the electronic device.

10. The method according to claim 9, characterized in that, The first chip includes a display driver chip, and the second chip includes a system-on-chip.

11. The method according to claim 1, wherein The transferring the first display data to the second storage space includes: Verifying the display data transferred to the second storage space to obtain a verification result; Corresponding to the verification result indicating that the display data transferred to the second storage space is abnormal, re-transferring the first display data in the first storage space to the second storage space.

12. An electronic device, characterized in that, Includes: A memory for storing instructions executed by one or more processors of the electronic device; A processor, when the processor executes the instructions in the memory, enables the electronic device to execute the data storage method according to any one of claims 1 to 11.

13. A computer-readable storage medium, characterized in that, Instructions are stored on the computer-readable storage medium, and when the instructions are executed on the computer, the computer is enabled to execute the data storage method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Data storage method, electronic equipment and storage medium

    CN120276657A

  • Brightness compensation device and method

    CN102034459A

  • Storage space read-write control method and system

    CN105260135A

  • Method and device for preventing abnormal writing of storage medium and electronic device

    CN107766008A

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

    CN114296634A