Data storage method, electronic equipment and storage medium

By setting the first and second storage spaces in the electronic device, data transfer is managed according to the display time and erase cycle, the display abnormality caused by the limited number of non-volatile memory erase times is solved, and the stable brightness compensation of the display screen is achieved and the service life is extended.

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

Patent Information

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

AI Technical Summary

Technical Problem

The number of read and write times of non-volatile memory is limited. When the number of erases is too high, the storage performance will decline, resulting in abnormal display data, affecting the display brightness compensation and display effect of electronic devices.

Method used

By setting the first and second storage spaces in the electronic device, the number of erases in the storage space is determined according to the display time and the period of writing data in the storage space. When the number of erases in the first storage space reaches a preset number, the data is transferred to the second storage space for storage, and verification is performed to ensure data consistency.

Benefits of technology

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

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120276657A_ABST
    Figure CN120276657A_ABST
Patent Text Reader

Abstract

The invention provides a data storage method, electronic equipment and a storage medium, and relates to the technical field of data storage. In the method provided by the embodiment of the invention, the electronic equipment can determine the data writing times of the first storage space based on the display duration and the display data writing period of the first storage space, so that whether the storage performance of the first storage space is abnormal or not is determined according to the data writing times of the first storage space. When the storage performance of the first storage space is abnormal, the display data in the first storage space can be transferred into the second storage space to be stored, the first storage space is replaced with the second storage space, and the display data of the electronic equipment in the subsequent display process is stored through the second storage space. Therefore, display data loss or errors caused by abnormal storage performance of the first storage space can be avoided, and abnormal display of the electronic equipment caused by abnormal brightness compensation of the aged pixel units on the display screen of the electronic equipment is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of data storage, and in particular, to a data storage method, an electronic device, and a storage medium. Background Art

[0002] To avoid data loss, an electronic device usually stores some important data in a non-volatile memory (such as flash), to prevent important data from being lost after the electronic device is powered off, which may cause the electronic device to malfunction. However, the number of read / write cycles of a non-volatile memory is limited. When the number of read / write cycles of the non-volatile memory reaches the limit, the storage performance of the non-volatile memory will decline, resulting in abnormal stored data, thus affecting the services based on the processing of these data.

[0003] For example, some mobile phones continuously write display data of the display screen (such as brightness, temperature, frame rate, etc.) (or referred to as "burn-in prevention data") into the flash of a display driver integrated circuit (DDIC) for storage during the display process. Then, the DDIC reads out these display data from the flash and performs brightness compensation on the aging pixel units on the mobile phone display screen according to these display data. However, when the number of erase / write cycles of the flash of the DDIC is too large and its storage performance becomes abnormal, the stored display data will become abnormal, resulting in abnormal brightness compensation of the aging pixel units on the mobile phone display screen by the DDIC, and thus abnormal display of the mobile phone. Summary of the Invention

[0004] Some embodiments of this application provide a data storage method, an electronic device, and a computer-readable storage medium. The following introduces this application from multiple aspects, and the embodiments and beneficial effects of the following multiple aspects can be referred to each other.

[0005] In a first aspect, this application provides a data storage method for an electronic device. The electronic device includes a first storage space and a second storage space. 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 display screen; and transferring the first display data to the second storage space.

[0006] It can be understood that the preset number of times can 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 of times can be the ratio of the duration of the display screen of the electronic device to the first period of writing data into the first storage space when the electronic device displays the display screen.

[0007] Based on the duration of the display screen of the electronic device and the first period for writing data to the first storage space when the electronic device displays the screen, the first number of times of writing display data to the first storage space, that is, the number of erase-write cycles, can be accurately determined. When the number of erase-write cycles of 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 the first storage space appears abnormal, and when the first storage space appears abnormal, the second storage space stores the display data of the electronic device, thereby avoiding abnormal display data stored due to abnormal storage performance of the first storage space, resulting in abnormal brightness compensation for the display screen of the electronic device, and further resulting in abnormal display of the display screen of the electronic device.

[0008] The first display data can be the display data when the electronic device displays the screen before the electronic device transfers the first storage space to the second storage space.

[0009] In some embodiments, the method further includes: obtaining second display data and storing the second display data in the second storage space.

[0010] After transferring the first display data stored in the first storage space 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 abnormal stored display data.

[0011] The second display data can be the display data when the electronic device displays the screen after the electronic device transfers the display data in the first storage space to the second storage space.

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

[0013] In some embodiments, the display data includes at least one of the following: brightness, gray scale, temperature, frame rate.

[0014] During the display process of the electronic device, the electronic device can determine the compensation voltage of the aging pixel units of the display screen of the electronic device based on display data such as brightness, gray scale, temperature, frame rate, etc., and then compensate the aging pixel units through the compensation voltage, so that the brightness of the aging pixel units reaches the brightness before aging, thereby realizing the brightness compensation of the display screen of the display screen.

[0015] In some embodiments, the first period is the period for writing display data to the first storage space when the electronic device displays the screen.

[0016] In some embodiments, the first storage space and the first storage space are provided in the first storage medium of the electronic device.

[0017] In some embodiments, the first storage space is provided in the first storage medium of the electronic device, and the second storage space is provided in the second storage medium of the electronic device.

[0018] In some embodiments, the first storage medium and the second storage medium are provided in the first chip of the electronic device.

[0019] In some embodiments, the first storage medium is provided in the first chip of the electronic device, and the second storage medium is provided in the second chip of the electronic device.

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

[0021] 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; if the verification result indicates that the first display data in the second storage space is abnormal, transferring the first display data in the first storage space to the second storage space again.

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

[0023] For example, the electronic device can use verification methods such as cyclic redundancy check (CRC), checksum, hash check, error correction code (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 abnormal. When the electronic device determines that the display data transferred to the second storage space is abnormal, it is necessary to transfer the display data in the first storage space to the second storage space again.

[0024] In a second aspect, embodiments of the present application provide an electronic device, including: 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, enabling the electronic device to execute the method described in the first aspect of the present application. The beneficial effects that can be achieved in the second aspect can refer to the beneficial effects of the method provided in any embodiment of the first aspect, and will not be elaborated here.

[0025] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which instructions are stored. When the instructions are executed on a computer, the computer can execute the method described in any embodiment of the first aspect. The beneficial effects that can be achieved in the third aspect can refer to the beneficial effects of the method provided in any embodiment of the first aspect, which will not be elaborated here.

[0026] In a fourth aspect, an embodiment of the present application provides a computer program product, which includes: a computer program (which can also be referred to as code or instructions). When the computer program is run, the computer is enabled to execute the method in any possible implementation manner of the above-mentioned first aspect. The beneficial effects that can be achieved in the fourth aspect can refer to the beneficial effects of the method provided in any embodiment of the first aspect, which will not be elaborated here. Description of the Drawings

[0027] Figure 1 is an exemplary application scenario of the present application;

[0028] Figure 2 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;

[0029] Figure 3 is a schematic flowchart of a data storage method provided by an embodiment of the present application;

[0030] Figure 4 shows a schematic structural diagram of another electronic device provided by an embodiment of the present application;

[0031] Figure 5 shows a schematic structural diagram of another electronic device provided by an embodiment of the present application;

[0032] Figure 6 shows a schematic structural diagram of another electronic device provided by an embodiment of the present application;

[0033] Figure 7 shows a schematic comparison diagram of the structures of electronic devices applicable to the technical solution of the present application;

[0034] Figure 8 shows a schematic structural diagram of another electronic device provided by an embodiment of the present application;

[0035] Figure 9 shows a schematic structural diagram of another electronic device provided by an embodiment of the present application;

[0036] Figure 10 is a schematic diagram of the software and hardware system architecture of the electronic device provided by an embodiment of the present application;

[0037] Figure 11Shows a schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0038] The embodiments of the present application are used to provide a data storage method. The data storage method of the embodiments of the present application will be introduced below.

[0039] The technical solution of the present application is applicable to various electronic devices with a display screen, such as mobile phones, tablets, large-screen devices, wearable devices (e.g., watches, smart glasses, helmets), computers, augmented reality (AR) / virtual reality (VR) devices, etc., and no limitation is made thereto.

[0040] The display screen of the electronic device of the present application may be an organic light-emitting diode (OLED) screen, or an active-matrix organic light-emitting diode (AMOLED) screen, etc., or may also be other screens that use organic light-emitting materials for light emission.

[0041] Taking a mobile phone with an OLED screen as an example of the electronic device, the technical solution of the present application will be described below.

[0042] Figure 1 Is an exemplary application scenario of the present application.

[0043] Reference Figure 1 , the electronic device 100 includes a display screen 10. The display screen 10 is an OLED screen. The core device of the OLED screen includes an electroluminescent (EL) circuit. The EL circuit is composed of structures such as an electron transport layer, a hole transport layer, and a light-emitting layer. When the OLED screen works, the EL circuit will, under the action of current and voltage, drive the organic materials of each pixel unit in the light-emitting layer to undergo molecular structure changes to release photons, achieving the effect of light emission. However, as the usage time increases, the organic materials of some pixel units in the light-emitting layer may gradually age and degrade, resulting in changes in parameters such as the brightness and color of the screen, thereby affecting the display effect, such as dimming, local image retention, etc.

[0044] Exemplarily, as Figure 1As shown, after the pixel units in the display area 11 of the display screen 10 of the electronic device 100 age, the brightness of the display area 11 decreases compared to the brightness before aging, resulting in abnormal display of the display screen 10 and affecting the user experience. In this case, the electronic device 100 can 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 brightness of the aged pixel units can reach the brightness before aging.

[0045] For example, the pixel units in the display area 11 on the display screen 10 of the electronic device 100 could 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 their brightness can only reach 200 nits when driven by 3.5V. In this case, the electronic device 100 can use a voltage compensation circuit to provide an additional 0.5V compensation voltage to the pixel units in the display area 11 of the display screen 10, so that the brightness of the pixel units in the display area 11 on the display screen 10 reaches 200 nits when driven by a 3.5V voltage, restoring the pixel units in the display area 11 on the display screen 10 to the brightness before aging.

[0046] The voltage compensation principle for aged pixel units is introduced below.

[0047] Figure 2 This is a structural schematic diagram of an electronic device provided by an embodiment of the present application.

[0048] As Figure 2 shown, the electronic device 100 includes a display screen 10 and a DDIC 20. Among them, the DDIC 20 includes a static random access memory (SRAM) 21, a flash 22, and an intellectual property core (IP) circuit 23 (or referred to as an "anti-burn-in circuit"). The SRAM 21 is respectively connected to the flash 22 and the IP core circuit 23. The IP core circuit 23 is connected to the display screen 10.

[0049] It can be understood that the SRAM 21 is a volatile memory, and the data stored in it will be lost when power is off. The flash 22 is a non-volatile memory, and the data stored in it will not be lost when power is off.

[0050] When the display screen 10 of the electronic device 100 is in the lit state, the electronic device 100 continuously writes the display data of the display screen 10 (such as brightness, gray scale, temperature, frame rate, etc.) into the SRAM 21 that serves as a buffer, and then writes the display data in the SRAM 21 into the flash 22 for storage, so as to prevent the display data of the display screen 10 from being lost when the electronic device 100 loses power. After writing the display data of the display screen 10 into the flash 22, when the DDIC 20 performs brightness compensation on the aging pixel units on the display screen 10, the IP core circuit 23 can read the display data of the display screen 10 from the flash 22 through the SRAM 21. Then, based on the read display data, the IP core circuit 23 can determine the aging pixel units on the display screen 10 and calculate the voltage that the aging pixel unit needs to be compensated (referred to as "compensation voltage"). Then, the IP core circuit 23 can provide the calculated compensation voltage for the aging pixel unit additionally, and drive the aging pixel unit to emit light with a higher voltage, so that the aging pixel unit reaches the brightness level before aging, thereby preventing the display screen 10 from displaying abnormally.

[0051] It can be understood that the principle of flash storing data is mainly based on charge storage and erasure operations. The flash memory is composed of special floating-gate field-effect transistors, and each storage unit consists of a floating gate and two silicon dioxide layers. The floating gate is composed of nitride sandwiched between two layers of silicon dioxide and is used to store charges. By changing the amount of charge in the storage unit, binary data can be stored. In the flash memory, data writing is achieved by applying a high voltage to the storage unit. When the voltage is applied to the storage unit, electrons are injected into the floating gate, thereby changing the amount of charge. When the amount of charge is high, it means that "1" is stored, and when the amount of charge is low, it means that "0" is stored. As the number of flash erase / write cycles increases, electrons in the floating gate will leak, which will lead to a decrease in the amount of charge, thereby causing the storage performance of the flash to decline, affecting the reliability and read / write speed of the data. That is to say, the number of flash erase / write cycles (write cycles) is limited, generally ranging from tens of thousands to millions of times. Usually, after the flash writes 500,000 times of data, its storage performance begins to gradually decline.

[0052] Based on the above principle, it can be known that when the number of times of writing display data into the flash 22 is too large, the storage performance of the flash 22 may decline, and the stored display data may be abnormal, such as being lost or incorrect, etc. At this time, the IP core circuit 23 will read abnormal display data from the flash 22, resulting in a deviation in the calculated compensation voltage of the IP core circuit 23, causing the DDIC 20 to under-compensate or over-compensate the aging pixel units on the display screen 10, resulting in abnormal display of the display screen 10 of the electronic device 100.

[0053] To avoid abnormal display data storage caused by abnormal storage performance of the flash 22. In some embodiments, when the electronic device 100 determines that the number of times of writing display data to the flash 22 reaches the number of data writes when the storage performance of the flash 22 begins to decline (such as 400,000 times, 500,000 times, etc.), the display data stored in the flash 22 can be moved to other storage spaces for storage.

[0054] However, the DDIC 20 is not provided with a logic circuit for counting the number of read and write times of the flash 22, so it is impossible to determine the number of times of writing display data to the flash 22, and thus it is impossible to determine whether the storage performance of the flash 22 is abnormal.

[0055] 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 to the first storage space for storage. The number of times of writing display data to the first storage space can be determined according to the display duration of the electronic device and the period of writing display data to the first storage space. Then, when the number of times of writing display data 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 appears abnormal, and when the first storage space appears abnormal, the second storage space stores the display data of the electronic device, thereby avoiding abnormal display data storage caused by abnormal storage performance of the first storage space, resulting in abnormal brightness compensation of the display screen of the electronic device, and further resulting in abnormal display of the display screen of the electronic device.

[0056] In some embodiments, the number of times of writing display data to the first storage space can be the ratio of the display duration of the electronic device to the period of writing display data to the first storage space. The display duration can be the cumulative screen-on duration of the electronic device.

[0057] It can be understood that the display data includes, but is not limited to, display parameters such as brightness, gray scale, temperature, frame rate, etc. during the display process of the display screen of the electronic device. The display data is used to compensate the brightness when the display screen of the electronic device displays a picture. For example, the electronic device can determine the compensation voltage of the aging pixel unit on the display screen based on the display data, and then provide the compensation voltage to the aging pixel unit, so that the aging pixel unit reaches the brightness level before aging under the drive of a higher voltage, thereby compensating the brightness of the display picture of the display screen.

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

[0059] It can be understood that the first storage medium and the second storage medium can be set in the same chip of the electronic device, or can be set in different chips of the electronic device. For example, both the first storage medium and the second storage medium are set in the first chip (such as a DDIC chip, etc.). Or, the first storage medium is set in the first chip, and the second storage medium is set in the second chip (such as a system on a chip (SOC), etc.).

[0060] 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.

[0061] The following introduces specific embodiments of the present application.

[0062] Figure 3 It is a flowchart example of the data storage method provided by the embodiment of the present application.

[0063] S101: The electronic device writes the first display data into the first storage space.

[0064] 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.

[0065] During the process of the display screen of the electronic device being lit, the electronic device can write the first display data of the display screen during the display process into the first storage space for storage.

[0066] S102: The electronic device determines that the first number of times of writing display 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 display duration of the electronic device and the first period of writing display data into the first storage space.

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

[0068] In some embodiments, the electronic device can count the number of times the screen of the electronic device is turned on and the duration of each screen-on, and then calculate the display duration of the electronic device through the following formula (1).

[0069]

[0070] Among them, T is the display duration of the electronic device, n is the number of times the screen of the electronic device is turned on, and t n is the duration of the screen-on of the electronic device at the nth time the screen is turned on.

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

[0072] T>t a *count(2)

[0073] Among them, t a is the first period for writing display data to the first storage space (for example, 10ms, 15ms, 20ms, etc., which is not limited herein), and count is the preset number of times (for example, 400,000 times, 500,000 times, etc., which is not limited herein).

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

[0075]

[0076] Among them, is the number of times the first storage space writes display data.

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

[0078] After the electronic device determines that the number of times the first storage space writes display data is greater than the preset number of times, it can move the first display data in the first storage space to the second storage space for storage, so as to avoid loss or error of the stored first display data due to the degradation of the storage performance of the first storage space.

[0079] For example, Figure 4 shows a structural example diagram of the electronic device 100’. Refer to Figure 4 , in the above Figure 2Based on the electronic device 100 shown, the electronic device 100' is additionally provided with a flash 22'. The electronic device 100' can first use the storage space of the flash 22 (as an example of the first storage space) to store display data. Then, when the electronic device 100' determines that the first number of times of writing display data into the storage space of the flash 22 is greater than a preset number of times, it can transfer the display data stored in the storage space of the flash 22 to the storage space of the flash 22' (as an example of the second storage space) for storage, so as to avoid abnormal display data stored due to abnormal storage performance of the flash 22.

[0080] For another example, Figure 5 shows a structural example diagram of another electronic device 100'. Refer to Figure 5 , on the basis of the electronic device 100 shown above Figure 2 the storage space of the flash 22 of the electronic device 100' is divided 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 the 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, it can transfer the display data in the storage space A to the storage space B (as an example of the second storage space) for storage, so as to avoid abnormal display data stored due to abnormal storage performance of the storage space A of the flash 22.

[0081] For yet another example, Figure 6 shows a structural example diagram of yet another electronic device 100'. Refer to Figure 6 , on the basis of the electronic device 100 shown above Figure 2 the electronic device 100' further includes an application processor (AP) 30, where the AP 30 includes a ROM 31. The electronic device 100' can first use the storage space of the flash 22 (as an example of the first storage space). Then, when the electronic device 100' determines that the storage performance of the storage space of the flash 22 is abnormal, it can transfer the display data in the storage space of the flash 22 to the storage space of the ROM 31 of the AP 30 (as an example of the second storage space) for storage, so as to avoid abnormal display data stored due to abnormal storage performance of the flash 22.

[0082] 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.

[0083] In some embodiments, after the electronic device transfers the display data in the first storage space to the second storage space, it can 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 so, it is determined that the display data transferred to the second storage space is normal; if not, it is determined that the display data transferred to the second storage space is abnormal.

[0084] For example, the electronic device can use verification methods such as CRC, checksum, hash verification, and 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 consistent with the display data in the first storage space before the transfer. When 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 transfer the display data in the first storage space to the second storage space again.

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

[0086] 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 for the subsequent display screen of the display screen, and then store the second display data in the second storage space to avoid data anomalies.

[0087] In the embodiments of the present application, the electronic device can determine the number of times the display data is written to the first storage space according to the display duration and the period of writing the display data to the first storage space, so as to determine whether the storage performance of the first storage space is abnormal according to the number of times the display data is written to the first storage space. And when it is determined 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 anomalies for storage, and the second storage space is used to store the display data during the subsequent display process of the electronic device. In this way, it is possible to avoid abnormal display data stored due to abnormal storage performance of the first storage space, resulting in abnormal brightness compensation of the display screen of the electronic device, and further resulting in abnormal display of the display screen of the electronic device.

[0088] For ease of understanding, the technical solutions of the present application will be introduced below with specific examples.

[0089] Figure 7 Shows a structural comparison example diagram of an electronic device applicable to the technical solution of the present application.

[0090] Reference Figure 7, the electronic device 100 includes a system memory (system dram) 40, a system on-chip (SOC) 50, a DDIC 20, and a display screen 10. Among them, the SOC 50 includes a data processing unit (DPU) 51. The DPU 51 includes a pipe (channel) 71 and a mobile industry processor interface (MIPI) 72. The DDIC 20 includes an SRAM 21, a flash 22, an IP core circuit 23, and a MIPI 24. The IP core circuit 23 includes a compensation circuit (de-burn-in gain) 73 and a sampling circuit (de-burn-in sample) 74. The system memory 40, the pipe 71 of the DPU 51, the MIPI 72 of the DPU 51, the MIPI 24 of the DDIC 20, the compensation circuit 73 of the IP core circuit 32, the sampling circuit 74 of the IP core circuit 23, and the display screen 10 are connected in sequence. Moreover, 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. The SRAM 21 is connected to the flash 22.

[0091] After the application program on the electronic device 100 finishes drawing an image, the drawn image data will be stored in the system memory 40. Then, the DPU 51 of the SOC 50 on the electronic device 100 continuously reads the image data from the system memory 40 and transmits it to the IP core circuit 23 through the pipe 71 of the DPU 51, the MIPI 72 of the DPU 51, and the MIPI 24 of the DDIC 20 in sequence. After the image data passes through the compensation circuit 73 and the sampling circuit 74 of the IP core circuit 23, it is converted from a data signal into an analog signal. Then, the DDIC 20 drives the display screen 10 to display through the converted analog signal.

[0092] During the display process of the display screen 10 of the electronic device 100, the electronic device 100 continuously collects the display data of the display screen 10, such as brightness, temperature, gray scale, 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, the MIPI 72, the MIPI 24, and the compensation circuit 73 in sequence. The sampling circuit 74 periodically samples the display data, and then writes the sampled display data into the flash 22 through the SRAM 21 for storage.

[0093] After storing the display data of the display screen 10 of the electronic device 100 in the flash 22, when the DDIC 20 performs brightness compensation on the aging pixel units on the display screen 10, the display data in the flash 22 can be fed back to the compensation circuit 73 of the IP core through the SRAM 21. The compensation circuit 73 determines the corresponding compensation voltage according to the display data, and then provides the compensation voltage to the aging pixel units on the display screen 10 through the sampling circuit 74 to perform brightness compensation on the aging pixel units on the display screen 10.

[0094] However, as mentioned above, the number of erase / write cycles of the flash 22 is limited. When the number of times the display data is written into the flash 22 is too large, the stored display data will become abnormal, resulting in abnormal brightness compensation of the display screen 10 of the electronic device 100, and abnormal aging phenomena such as dimming and local image residue will occur when the display screen 10 of the electronic device 100 is displayed, affecting the service life of the display screen 10.

[0095] Based on this, on the basis of the electronic device 100, a flash 22' is added inside the DDIC 20 of the electronic device 100' as a backup. During the display process of the display screen 10 of the electronic device 100, the electronic device 100 will count the display duration of the display screen 10 and store it in the system memory 40. Then, the DPU 51 in the SOC 50 reads the display duration of the display screen 10 from the system memory 40 and transmits it to the IP core circuit 23 through the MIPI 72 and the MIPI 24 of the DDIC 20. Then, the IP core circuit 23 calculates the number of times the display data is written into the flash 22 according to the display duration of the display screen 10 and the cycle of writing the display data into the flash 22. When the number of times the display data is written into the flash 22 is greater than the preset number of times, the DDIC 20 replaces the flash 22 with the flash 22', and transfers the display data in the flash 22 to the flash 22' for storage. In this way, the abnormality of the stored display data can be avoided, and the service life of the display screen 10 can be extended. For example, adding a flash 22' with the same specification as the flash 22 in the electronic device 100 can extend the service life of the display screen 10 of the electronic device 100 by 2 times.

[0096] In other embodiments, more flashes can also be added in the DDIC 20 to further extend the service life of the display screen 10. The principle is the same as the above introduction, and will not be elaborated here.

[0097] In other embodiments, the above Figure 7 described electronic device 100' can also be deformed to achieve the same effect as the electronic device 100'.

[0098] For example, referring to Figure 8 , the electronic device 100' does not add a flash in the DDIC 20, but divides the flash 22 into multiple storage spaces: storage space A1, storage space A2,.... When the number of times the display data is written into the storage space A1 of the flash 22 is greater than a preset number of times, the storage space A1 can be replaced with the storage space A2, and the display data in the storage space A1 is transferred to the storage space A2 for storage.

[0099] For another example, referring to Figure 9 , the electronic device 100' also does not add a flash in the DDIC 20. Instead, when the number of times the display data is written into the flash 22 is greater than a preset number of times, the flash 22 is replaced with the ROM 31 of the AP 30 in the SOC 50, and the display data in the flash 22 is transferred to the ROM 31 of the AP 30 for storage.

[0100] The above only introduces the technical solution of the present application from the hardware level. Next, the technical solution of the present application will be introduced in a combination of software and hardware.

[0101] Figure 10 It is an example diagram of the software and hardware system architecture of the electronic device provided in the embodiment of the present application.

[0102] As Figure 10 shown, the system includes a hardware abstraction layer (HAL), a kernel layer, and a hardware layer.

[0103] Among them, the hardware abstraction layer includes a hardware composer service, a display service, and an original equipment manufacturer information (OEMinfo) service. The hardware composer service is responsible for the status management of the display screen, image composition, image display, etc. The display service is responsible for the status management of the DDIC, the policy decision of the anti-burn-in algorithm, etc. The OEMinfo service is responsible for data storage, upgrade and restore factory data security, etc.

[0104] The kernel layer includes display drivers and file drivers. Among them, the display drivers are responsible for the hardware drive of the display screen, MIPI instruction transceiver, etc. The file drivers are responsible for storing kernel drivers.

[0105] The hardware layer includes the DDIC and system memory. The DDIC is responsible for driving the display screen to display, storing the display data of the display screen, and performing tasks such as brightness compensation on the display screen according to the display data. The system memory is responsible for storing user behavior data, the number of screen-on times, the screen-on time, and other data.

[0106] The following will combine Figure 10 with the example diagram of the software and hardware system architecture of the electronic device shown below to illustrate the data storage method of the embodiments of the present application.

[0107] Referring to Figure 10 , the method includes the following steps:

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

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

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

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

[0112] S3: The display service notifies the display driver to turn on the anti-burn-in function.

[0113] The anti-burn-in function is a function for performing brightness compensation on the display screen of the electronic device.

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

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

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

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

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

[0119] S6: The display service notifies the OEMinfo service to store the display duration.

[0120] After the display service receives the display duration synchronized by the hardware synthesizer service, it can notify the OEMinfo service to store the display duration of the electronic device and synchronize the display duration to the OEMinfo service, so that the OEMinfo service can call the file driver to store the display duration of the electronic device in the non-erasable partition of the system memory, such as the system partition, the boot partition, etc., so that the user's factory reset or restart of the electronic device will not be erased. Alternatively, the display duration of the electronic device can also be stored in other non-volatile memories, such as ROM, programmable read-only memory (PROM), etc.

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

[0122] When compensating for the brightness of the display screen of the 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.

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

[0124] After the display service receives the display duration sent by the OEMinfo service, it can calculate the number of times of flash writing display data based on the display duration and the cycle of flash writing display data by the DDIC. When the number of times of flash writing display data is greater than the preset number of times, the display service can notify the display driver to turn off the anti-burn-in function.

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

[0126] After the display driver receives the notification to turn off the anti-burn-in function from the display service, the display driver can notify the DDIC to turn off the anti-burn-in function of the IP core and move the display data stored in the flash to the backup flash for storage. For example, move the data stored in the flash 22 of the DDIC 20 of the electronic device 100' shown above to the flash 22' for storage. Figure 7 The data stored in the flash 22 of the DDIC 20 of the electronic device 100' shown above is moved to the flash 22' for storage.

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

[0128] After the DDIC transfers the display data in the flash to the backup flash, the display service can verify the display data transferred to the backup flash. After the verification result indicates that the transferred display data is normal, the display service can notify the display driver to restart the anti-burn-in function.

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

[0130] After the display driver receives the notification to restart the anti-burn-in function sent by the display service, 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.

[0131] Figure 11 The structural schematic diagram of the electronic device 100' is shown. 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 10, and a subscriber identification module (SIM) card interface 195, etc. Among them, 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.

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

[0133] It can be understood that the structure schematically shown in the embodiments 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 components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0134] The processor 110 may include one or more processing units. For example, the processor 110 may include 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), etc. In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include 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.

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

[0136] 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 inputs from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 10, the camera 193, the wireless communication module 160, etc. 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 disposed in the processor 110. In some other embodiments, the power management module 141 and the charging management module 140 can also be disposed in the same device.

[0137] 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 modulation and demodulation processor, and the baseband processor, etc.

[0138] The antenna 1 and the antenna 2 are used to transmit and receive 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. For example, the antenna 1 can be multiplexed as the diversity antenna of the wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0139] 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 by the antenna 1, and perform processing such as filtering and amplification on 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 through the antenna 1 and radiate it out. In some embodiments, at least some functional modules of the mobile communication module 150 can be disposed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 can be disposed in the same device.

[0140] The modulation and demodulation processor may 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 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 modulation and demodulation processor may be an independent device. In other embodiments, the modulation and demodulation processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.

[0141] The wireless communication module 160 may provide solutions for wireless communications applied to the electronic device 100', including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite systems (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive the signals to be transmitted from the processor 110, perform frequency modulation and amplification on them, and convert them into electromagnetic waves through the antenna 2 for radiation.

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

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

[0144] 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 1.

[0145] The electronic device 100' can implement the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 10, the application processor, etc.

[0146] 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 implement the data storage function. For example, files such as text messages and videos are saved in the external memory card.

[0147] The internal memory 121 can be used to store computer-executable program code, and the executable program code includes instructions. The internal memory 121 can include a program storage area and a data storage area. Among them, the program storage area can store the operating system, application programs required for at least one function (such as the image playback function, etc.). The data storage area can store the data created during the use of the electronic device 100' (such as audio data, phone book, etc.). In addition, the internal memory 121 can include high-speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, etc. 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 and / or the instructions stored in the memory provided in the processor.

[0148] The various embodiments disclosed in this application can be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of this 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 memories and / or storage elements), at least one input device, and at least one output device.

[0149] The program code can be applied to the input instructions to execute the various functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, the 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.

[0150] The program code can be implemented in a high-level procedural language or an object-oriented programming language to communicate with the processing system. When necessary, the program code can also be implemented in assembly language or machine language. In fact, the mechanisms described in this application are not limited to the scope of any specific programming language. In any case, the language can be a compiled language or an interpreted language.

[0151] In some cases, the disclosed embodiments can be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments can also be implemented as instructions carried or stored on one or more transient or non-transitory machine-readable (e.g., computer-readable) storage media, which can be read and executed by one or more processors. For example, the instructions can be distributed via a network or via other computer-readable media. Thus, machine-readable media can include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including but not limited to, floppy disks, optical disks, optical discs, magneto-optical discs, read only memory (ROM), random access memory (RAM), erasable programmable read-only memory (EPROM), electrically erasable programmable read only memory (EEPROM), magnetic or optical cards, flash memory, or tangible machine-readable memories for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) in electrical, optical, acoustic, or other forms using the Internet. Thus, 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 (e.g., a computer).

[0152] In the 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 ordering 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. Additionally, including a structural or method feature in a particular figure does not imply that such a feature is required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.

[0153] The embodiments of this application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned various method embodiments can be implemented.

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

[0155] It should be noted that in the examples and the description of this patent, relational terms such as first and second are only used 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 term "comprising", "including" or any other variation thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "comprising one" does not exclude the presence of additional identical elements in the process, method, article or device comprising the element.

[0156] Although the present application has been illustrated and described by referring to some preferred embodiments of the present application, those of ordinary skill in the art should understand that various changes can be made to it in form and detail 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. Moreover, 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, wherein 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, wherein 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, wherein 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, transferring the first display data in the first storage space to the second storage space again.

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

Cited By

  • Data storage method, electronic device, and storage medium

    EP4776112A1

  • Data storage method, electronic device, and storage medium

    WO2025138727A1