Storage medium conversion method of memory and electronic device

By recording the number of erases in the storage area in an electronic device and converting the storage medium when the maximum erases are reached, the problem of insufficient erases is solved, which extends the service life of the memory and reduces the risk of data errors .

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

Patent Information

Application Number
CN202311435512.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-30
Publication Date
2025-02-07
Estimated Expiration
2043-10-30

AI Technical Summary

Technical Problem

High-level flash memory has fewer erasable times. As the number of times of writing, reading and/or deletion increases, the oxide layer of the memory may be damaged, resulting in charge loss and data storage abnormalities, reducing the use of electronic devices. life.

Method used

By implementing the storage medium conversion method in an electronic device, the number of erases in multiple storage areas is recorded. When the number of erases in a certain storage area reaches the maximum number of erases, the high-level storage medium is converted into a low-level storage. media to reduce data density and extend memory life.

Benefits of technology

It extends the service life of the memory, reduces the possibility of data identification errors, and avoids abnormal data storage capabilities caused by charge loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118444842B_ABST
    Figure CN118444842B_ABST
Patent Text Reader

Abstract

The present application provides a storage medium conversion method of a memory and an electronic device, which is applied to an electronic device, wherein the electronic device includes a memory, the memory includes a first storage medium and a second storage medium, the maximum erasable number of times of the second storage medium is greater than the maximum erasable number of times of the first storage medium, and the method includes: when the electronic device is activated, starting a first function, the first function is used to record the erasable number of times of each storage area in multiple storage areas in the first storage medium; when the erasable number of times of the first storage area in the multiple storage areas is greater than or equal to the first number, determining whether the current user data amount stored in the memory meets the first condition, the first condition is related to the current total storage capacity of the first storage medium and the second storage medium; when the current user data amount meets the first condition, converting the first storage medium into the second storage medium. Thus, the present application can improve the service life of the memory and ensure the service life of the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] As mobile phones and other electronic devices have increasingly higher requirements for data storage capacity and read and write speeds, flash memory with larger data storage capacity and faster read and write speeds has gradually become the preferred choice for electronic devices to store data.

[0003] At present, flash memory can include the following types of storage media: single-layer unit, multi-layer unit, three-layer unit, four-layer unit and five-layer unit. Since the low-level storage medium has a fast read and write speed and the high-level storage medium has a large storage capacity, when storing data, the electronic device can first write the data to the low-level storage medium in the memory, then write the data from the low-level storage medium to the high-level storage medium, and finally store the data in the high-level storage medium.

[0004] However, high-level storage media have fewer erasable times. As the number of writes, reads and / or deletes increases, the oxide layer of the flash memory may be damaged, causing the charge in the memory to be lost and the stored data to be read abnormally, resulting in the electronic device being unable to be used normally and the overall life of the electronic device being reduced. Summary of the invention

[0005] The present application provides a storage medium conversion method of a memory and an electronic device to maximize the service life of the memory.

[0006] In a first aspect, the present application provides a storage medium conversion method of a memory, which is applied to an electronic device, wherein the electronic device includes a memory, the memory includes a first storage medium and a second storage medium, the maximum number of erasable times of the second storage medium is greater than the maximum number of erasable times of the first storage medium, the first storage medium includes multiple storage areas, and the electronic device includes the memory, the method includes:

[0007] When the electronic device is activated, a first function is started, and the first function is used to record the number of times each storage area is erased and written; when the number of times a first storage area among the multiple storage areas is erased and written is greater than or equal to a first number, it is determined whether the current amount of user data stored in the memory meets a first condition, the first storage area is any one of the multiple storage areas in the first storage medium, the first number is the maximum number of times the first storage medium can be erased and written, and the first condition is related to the current total storage capacity of the first storage medium and the second storage medium; when the current amount of user data meets the first condition, the first storage medium is converted into the second storage medium.

[0008] Among them, the activation of an electronic device is the process of connecting the electronic device to a mobile network for the first time and enabling it to be used normally after the electronic device is turned on for the first time.

[0009] In the above method, when the electronic device is activated, the erasure times of each storage area in the multiple storage areas in the first storage medium can be recorded through the first function of the electronic device, so that the corresponding operation can be performed when the erasure times of any storage area in the multiple storage areas is greater than or equal to the first number. In addition, when the erasure times of the first storage area in the multiple storage areas is greater than or equal to the first number, it is determined that the first storage area has reached the end of its service life and there is a possibility of data recognition error in the memory. Therefore, the electronic device can determine whether the current user data volume stored in the memory meets the first condition. When the current user data volume meets the first condition, the first storage medium is converted to the second storage medium. Since the maximum erasable times of the second storage medium is greater than the maximum erasable times of the first storage medium, and the storage density of the second storage medium is less than that of the first storage medium, converting the first storage medium to the second storage medium can reduce the data density of the memory, reduce the possibility of data recognition error, and extend the service life of the memory.

[0010] In other words, when any one of the multiple storage areas in the high-level storage medium of the electronic device reaches the end of its storage life and the current amount of user data meets the first condition, the storage medium can be downgraded in exchange for the service life of the memory to ensure the use time of the electronic device.

[0011] It should be noted that when the memory includes two storage media, when the erasure number of any one of the multiple storage areas in the high-level storage medium reaches the maximum erasable number and the amount of user data meets the first condition, the high-level storage medium is downgraded to a low-level storage medium. When the memory includes three storage media, when the erasure number of any one of the multiple storage areas in the highest-level storage medium reaches the maximum erasable number and the amount of user data meets the first condition, the highest-level storage medium is downgraded to a second-highest-level storage medium; when the erasure number of any one of the multiple storage areas in the second-highest-level storage medium reaches the maximum erasable number and the amount of user data meets the first condition, the second-highest-level storage medium is downgraded to a low-level storage medium.

[0012] In combination with the first aspect, in some implementations of the first aspect, the first condition includes that the current amount of user data is less than or equal to a second amount, the second amount is the current total storage capacity of the first storage medium and the second storage medium, and when the number of erase and write times of a first storage area in the multiple storage areas is greater than or equal to the first amount, determining whether the current amount of user data stored in the memory satisfies the first condition includes:

[0013] When the number of erase and write times of a first storage area among multiple storage areas is greater than or equal to a first number, determining whether the current amount of user data stored in the memory is equal to a second number; when the current amount of user data meets the first condition, converting the first storage medium into the second storage medium, including: when the current amount of user data is equal to the second number, converting all of the multiple storage areas into the second storage medium; when the current amount of user data is less than the second number, converting the first storage area into the second storage medium.

[0014] In the above method, when the current amount of user data is less than the second amount, the current user data is not fully stored in the current first storage medium and the second storage medium, and there is no need to convert all of the multiple storage areas in the first storage medium into the second storage medium. The electronic device can only convert the first storage area into the second storage medium to extend the service life of the entire memory; and, since the service life of other storage areas except the first storage area in the first storage medium has not yet reached the end of its service life, the other storage areas except the first storage area in the first storage medium can continue to be used to store data, thereby ensuring the storage capacity of the memory.

[0015] In addition, when the current user data amount is equal to the second amount, the current user data has fully stored the current first storage medium and the second storage medium, and the risk of large-scale loss of user data is high. The electronic device can convert all multiple storage areas into the second storage medium.

[0016] In combination with the first aspect, in some implementations of the first aspect, after all the multiple storage areas are converted into the second storage medium, the method further includes:

[0017] Stop converting the second storage medium into the first storage medium, wherein when the electronic device is activated, the second storage medium is in a state of gradually converting into the first storage medium, the storage capacity of the first storage medium gradually increases, and the storage capacity of the second storage medium gradually decreases.

[0018] Since the second storage medium is gradually converted into the first storage medium when the electronic device is activated, after converting the first storage medium into the second storage medium, the electronic device may still convert the second storage medium into the first storage medium again.

[0019] Furthermore, one of the conditions for converting the first storage medium into the second storage medium is that the number of erase and write times of the first storage area among the multiple storage areas in the first storage medium is greater than or equal to the maximum number of erasable times of the first storage medium, that is, the first storage medium has reached its service life; after the first storage medium reaches its service life, there is a risk of charge loss, and the charge loss may cause the data retention capacity of the flash memory to become abnormal, and the electronic device cannot be used normally.

[0020] In the above method, if after converting the first storage medium into the second storage medium, the electronic device converts the second storage medium into the first storage medium again, and uses the first storage medium to store data, there is still a risk of charge loss, resulting in abnormal data storage. Therefore, it is necessary to stop converting the second storage medium into the first storage medium after all multiple storage areas are converted into the second storage medium.

[0021] In conjunction with the first aspect, in some implementations of the first aspect, stopping converting the second storage medium into the first storage medium includes:

[0022] The second storage medium is marked with the first identifier; and according to the first identifier, the conversion of the second storage medium into the first storage medium is stopped.

[0023] In the above method, as an implementation mode, after all the multiple storage areas are converted into the second storage medium, the second storage medium can be marked with a first identifier, so as to stop converting the second storage medium into the first storage medium according to the first identifier.

[0024] As another implementation method, before converting all of the multiple storage areas into the second storage medium, a first identifier can be used to mark the multiple storage areas, so that after converting all of the multiple storage areas into the second storage medium, the conversion of the second storage medium into the first storage medium can be stopped according to the first identifier.

[0025] In conjunction with the first aspect, in some implementations of the first aspect, after converting the first storage area into the second storage medium, the method further includes:

[0026] Stop converting the second storage medium corresponding to the first storage area into the first storage medium.

[0027] Since the second storage medium is gradually converted into the first storage medium when the electronic device is activated, after converting the first storage medium into the second storage medium, the electronic device may still convert the second storage medium into the first storage medium again.

[0028] Furthermore, one of the conditions for converting the first storage area into the second storage medium is that the number of times the first storage area in the first storage medium is erased and written is greater than or equal to the maximum number of times the first storage medium can be erased and written, that is, the first storage medium has reached its service life; after the first storage medium reaches its service life, there is a risk of charge loss, and the charge loss may cause the data retention capacity of the flash memory to become abnormal, and the electronic device cannot be used normally.

[0029] In the above method, if after converting the first storage area into the second storage medium, the electronic device converts the second storage medium into the first storage medium again, data can still be stored through the first storage area, there is still a risk of charge loss, resulting in abnormal data storage. Therefore, it is necessary to stop converting the second storage medium corresponding to the first storage area into the first storage medium after converting the first storage area into the second storage medium.

[0030] In conjunction with the first aspect, in some implementations of the first aspect, stopping converting the second storage medium corresponding to the first storage area into the first storage medium includes:

[0031] The first storage area is marked with the second identifier; and according to the second identifier, the conversion of the second storage medium corresponding to the first storage area into the first storage medium is stopped.

[0032] In the above method, as an implementation mode, after converting the first storage area to the second storage medium, the first storage area can be marked with a second identifier, so as to stop converting the second storage medium corresponding to the first storage area to the first storage medium according to the second identifier.

[0033] As another implementation method, before converting the first storage area to the second storage medium, a second identifier can be used to mark the first storage area, so that after the first storage area is converted to the second storage medium, the conversion of the second storage medium corresponding to the first storage area to the first storage medium can be stopped according to the second identifier.

[0034] In conjunction with the first aspect, in some implementations of the first aspect, when the electronic device is activated, starting the first function includes:

[0035] When the electronic device is activated, the first function of the register of the first storage medium is started; when the number of erase and write times of the first storage area among multiple storage areas is greater than or equal to the first number, it is determined whether the current amount of user data stored in the memory meets the first condition, including: when the number of erase and write times of the first storage area recorded in the register is greater than or equal to the first number, it is determined whether the current amount of user data stored in the memory meets the first condition.

[0036] In the above method, the memory can allocate different registers to each storage medium in the memory, so that when the electronic device is activated, the first function of the register of the first storage medium can be started to record the number of erasures and writes of multiple storage areas in the first storage medium.

[0037] In combination with the first aspect, in some implementations of the first aspect, when the current user data amount is equal to the second amount, converting all of the multiple storage areas into the second storage medium includes:

[0038] When the current user data amount is equal to the second number, determine whether the current user data amount is less than a third number, the third number being the storage capacity of the second storage medium when all the multiple storage areas are converted into the second storage medium; when the current user data amount is less than the third number, display a first interface, the first interface including a first control, the first control being used to trigger the conversion of all the multiple storage areas into the second storage medium; in response to a first operation on the first control, convert all the multiple storage areas into the second storage medium.

[0039] In the above method, since the first storage medium has a large storage density and a large storage capacity, and the second storage medium has a small storage density and a small storage capacity, when the current amount of user data is equal to the second amount, if the first storage medium is directly converted to the second storage medium, the storage capacity becomes smaller, and the current user data may not be able to be stored in the second storage medium. Therefore, before converting all multiple storage areas in the first storage medium to the second storage medium, it is necessary to determine whether the current amount of user data is less than the third amount. When the current amount of user data is less than the third amount, all multiple storage areas are converted to the second storage medium.

[0040] Specifically, when the current amount of user data is less than the third amount, the electronic device can display a first interface and provide the user with a function of converting a first storage medium into a second storage medium through the first interface, so as to facilitate converting all multiple storage areas into the second storage medium according to user needs.

[0041] In combination with the first aspect, in some implementations of the first aspect, when the current user data amount is less than the third amount, displaying the first interface includes:

[0042] When the current amount of user data is less than a third amount, a second interface is displayed, wherein the second interface includes a second control, and the second control is used to remind the user that there is a risk of loss of the current user data stored in the memory, and to trigger the display of the first control; in response to a second operation on the second control, the first interface is displayed.

[0043] In the above method, when the current amount of user data is less than the third amount, the electronic device can display a second interface, and remind the user through the content of the second control in the second interface that there is a risk of loss of the current user data stored in the memory. The second control in the second interface can also provide the user with an entry to convert all multiple storage areas into a second storage medium.

[0044] In combination with the first aspect, in some implementations of the first aspect, when the current user data amount is equal to the second amount, converting all of the multiple storage areas into the second storage medium includes:

[0045] When the current user data amount is equal to the second amount, determine whether the current user data amount is less than the third amount; when the current user data amount is greater than or equal to the third amount, display a third interface, the third interface including a third control, the third control is used to trigger the conversion of multiple storage areas to the second storage medium when deleting or backing up the current user data stored in the fourth amount of memory, the fourth amount is greater than or equal to the fifth amount, the fifth amount is the amount corresponding to the difference between the storage capacity of the second storage medium and the current user data amount when all the multiple storage areas are converted to the second storage medium; in response to the third operation on the third control, delete or back up the fourth amount of current user data, and convert all the multiple storage areas to the second storage medium.

[0046] In the above method, since the second storage medium can store all the current user data only when all the multiple storage areas are converted into the second storage medium after deleting or backing up the fourth amount of current user data, the electronic device needs to delete or back up the fourth amount of current user data, and then execute the step of converting all the multiple storage areas into the second storage medium. Otherwise, the electronic device cannot convert all the multiple storage areas into the second storage medium.

[0047] Specifically, when the current amount of user data is greater than or equal to the third amount, the electronic device can display a third interface, and provide the user with the function of converting the first storage medium into the second storage medium through the third interface, so as to facilitate the conversion of multiple storage areas into the second storage medium according to user needs.

[0048] In combination with the first aspect, in some implementations of the first aspect, when the current user data amount is greater than or equal to the third amount, displaying the third interface includes:

[0049] When the current amount of user data is greater than or equal to the third amount, a fourth interface is displayed, wherein the fourth interface includes a fourth control, and the fourth control is used to remind the user that there is a risk of loss of the current user data stored in the memory, and to trigger the display of the third control; in response to a fourth operation on the fourth control, the third interface is displayed.

[0050] In the above method, when the current amount of user data is greater than or equal to the third amount, the electronic device can display a fourth interface, and remind the user through the content of the fourth control in the fourth interface that there is a risk of loss of the current user data stored in the memory. The fourth control in the fourth interface can also provide the user with an entry to delete or back up the fourth amount of current user data, and to convert all multiple storage areas into a second storage medium.

[0051] In combination with the first aspect, in some implementations of the first aspect, in response to a third operation on a third control, deleting a fourth amount of current user data, and converting all of the multiple storage areas into a second storage medium, includes:

[0052] In response to a third operation on a third control, a fifth interface is displayed, the fifth interface including a fifth control and current user data stored in a memory, the fifth control being used to trigger deletion of the current user data; in response to a fifth operation on the fifth interface, selected data in the current user data is determined, and the amount of the selected data is greater than or equal to a fourth amount; in response to a sixth operation on the fifth control, the selected data is deleted, and all multiple storage areas are converted into a second storage medium.

[0053] Among them, the fifth interface can be the interface of a file management application; the file management application is a tool for managing and organizing user data stored in the memory of an electronic device; the electronic device can display the user data stored in the memory through the interface of the file management application, and the user can delete or back up the user data stored in the memory based on operations on the interface of the file management application.

[0054] In the above method, the fifth interface has a fifth control for deleting the current user data stored in the memory. When receiving an operation of selecting data by the user, the electronic device can select the current user data stored in the memory. Thus, when receiving an operation of deleting the selected data, the electronic device can delete the selected data and, after deleting, convert all multiple storage areas into a second storage medium.

[0055] In addition, after all the multiple storage areas are converted into the second storage medium, the electronic device can be restarted, and after the restart, the electronic device stores data through the second storage medium.

[0056] In combination with the first aspect, in some implementations of the first aspect, the fifth interface further includes a sixth control, the sixth control is used to trigger backing up current user data to the first device, the first device and the electronic device are different devices, backing up a fourth amount of current user data, and converting all of the multiple storage areas into the second storage medium, including:

[0057] In response to a seventh operation on the sixth control, the selected data is backed up to the first device, and all of the multiple storage areas are converted into the second storage medium.

[0058] In the above method, the fifth interface has a sixth control for backing up the current user data stored in the memory. When receiving an operation of the user selecting data, the electronic device can select the current user data stored in the memory. Thus, when receiving an operation of backing up the selected data, the electronic device can back up the selected data and, after the backup, convert all multiple storage areas into a second storage medium.

[0059] In addition, after all the multiple storage areas are converted into the second storage medium, the electronic device can be restarted, and after the restart, the electronic device stores data through the second storage medium.

[0060] In combination with the first aspect, in certain implementations of the first aspect, the first storage medium includes storage media of any one level among multi-layer unit storage media, three-layer unit storage media, four-layer unit storage media, and five-layer unit storage media; the second storage medium includes storage media of any one or more levels among single-layer unit storage media, multi-layer unit storage media, three-layer unit storage media, and four-layer unit storage media.

[0061] For example, the first storage medium is a four-layer unit storage medium, and the second storage medium is a three-layer unit storage medium.

[0062] For another example, the first storage medium is a four-layer unit storage medium, and the second storage medium includes a three-layer unit storage medium and a single-layer unit storage medium.

[0063] In combination with the first aspect, in certain implementations of the first aspect, the memory is any one of a general flash memory, an embedded multimedia card, a general flash storage multi-chip package memory, a solid state drive, and an embedded multimedia card multi-chip package memory.

[0064] For example, the memory is a general-purpose flash memory.

[0065] In a second aspect, the present application provides a storage medium conversion device of a memory, wherein the storage medium conversion device of the memory is used to execute the storage medium conversion method of the memory in the first aspect and any possible implementation manner of the first aspect.

[0066] In a third aspect, the present application provides an electronic device comprising one or more processors, a memory and one or more computer programs, wherein the one or more computer programs are stored in the memory, and when the computer programs are executed by one or more processors, the electronic device executes the storage medium conversion method of the memory in the first aspect and any possible implementation of the first aspect.

[0067] In a fourth aspect, the present application provides a chip system, which includes a processor for calling and running a computer program from a memory, so that an electronic device equipped with the chip system executes the storage medium conversion method of the memory in the first aspect and any possible implementation of the first aspect.

[0068] In a fifth aspect, the present application provides a computer-readable storage medium, including a computer program. When the computer program runs on an electronic device, the electronic device executes the storage medium conversion method of the memory in the first aspect and any possible implementation of the first aspect.

[0069] In a sixth aspect, the present application provides a computer program product. When the computer program product runs on a computer, it enables the computer to execute the storage medium conversion method of the memory in the first aspect and any possible implementation of the first aspect.

[0070] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] Figure 1 A schematic diagram of normal voltage distribution of various types of storage media provided in the prior art;

[0072] Figure 2 A schematic diagram of the structure of a flash memory provided by the prior art;

[0073] Figure 3 A schematic diagram of the charge loss process of a flash memory storage device provided by the prior art;

[0074] Figure 4 A schematic diagram of the relationship between charge loss and threshold voltage provided by the prior art;

[0075] Figure 5 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application;

[0076] Figure 6 A schematic diagram of a human-computer interaction interface provided in one embodiment of the present application;

[0077] Figure 7 A schematic diagram of a human-computer interaction interface provided in one embodiment of the present application;

[0078] Figure 8 A schematic diagram of a human-computer interaction interface provided in one embodiment of the present application;

[0079] Fig. 9 A schematic diagram of storage medium conversion provided in one embodiment of the present application;

[0080] Fig.10 A schematic diagram of a flow chart of a method for converting a storage medium of a memory provided in one embodiment of the present application;

[0081] Fig.11 A schematic diagram of a memory life change provided in an embodiment of the present application;

[0082] Fig.12 A schematic diagram of a flow chart of a method for converting a storage medium of a memory provided in one embodiment of the present application;

[0083] Fig.13 A schematic diagram of the structure of a storage medium conversion device of a memory provided in one embodiment of the present application. DETAILED DESCRIPTION

[0084] In this application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c alone can represent: a, b, c, a and b, a and c, or a, b, and c, where a, b, and c can be single or multiple. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.

[0085] With the continuous upgrading of the digital economy and the successive application of technologies such as the Industrial Internet and 5G, mobile phones and other electronic devices have increasingly higher requirements for data storage volume and read and write speed. Therefore, flash memory with large storage volume and faster read and write speed has gradually become the preferred choice for electronic devices to store data.

[0086] At present, according to the differences in storage capacity, read and write speed, durability, etc., flash memory can include at least two types of storage media: single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC) and penta-level cell (PLC). Since the aforementioned low-level storage medium has a fast read and write speed and a small storage capacity, and the high-level storage medium has a slow read and write speed and a large storage capacity, when storing data, the electronic device can first write the data to the low-level storage medium for storage, and then write the data from the low-level storage medium to the high-level storage medium, and finally store the data in the high-level storage medium.

[0087] For example, flash memory includes two types of storage media, namely SLC and QLC. Since SLC has a fast read and write speed and QLC has a large storage capacity, when flash memory stores data, the data can be first stored in SLC and then stored from SLC to QLC.

[0088] Figure 1 It is a schematic diagram of the normal distribution of voltage for various types of storage media. Figure 1 As shown, among the various types of storage media, each storage medium can store different amounts of bit data, and different storage media have different data storage densities and performance characteristics. Specifically:

[0089] One storage unit (cell) of SLC can store one bit of data (1 bit per cell). SLC can have two voltage changes, which are represented by 0 and 1 respectively. SLC has the characteristics of the lowest storage density and a small voltage change range when writing data, and a lifespan of about 100,000 erase and write cycles.

[0090] One MLC storage unit (cell) can store two bits of data (2 bits per cell). MLC requires complex voltage control and has four voltage changes, which are represented by 00, 01, 10 and 11. MLC storage density is higher than SLC and has an erase and write life of about 10,000 times.

[0091] A TLC storage cell can store three bits of data (3 bits per cell). TLC can have eight voltage changes, which are represented by 000, 001, 010, 011, 100, 101, 110 and 111. TLC storage density is 1.5 times that of MLC, and has an erase and write life of about 3,000 times.

[0092] A QLC storage cell can store four bits of data (4 bits per cell). QLC can have sixteen voltage changes, which are represented by 1111, 0111, 0011, 1011, 1001, 0001, 0101, 1101, 1100, 0100, 0000, 1000, 1010, 0010, 0110 and 1110. The storage density of QLC is twice that of MLC, and it has an erase and write lifespan of about 1.3 thousand times.

[0093] A PLC cell can store five bits of data (5 bits per cell). PLC can have thirty-two voltage variations. PLC storage density is twice that of QLC.

[0094] The more bits of data stored in each storage unit in the storage medium, the higher the data storage density, and the fewer times the storage medium can be erased and written.

[0095] That is to say, for high-level storage media, each storage unit stores more bits of data, has a high data storage density, and can withstand fewer erasable and write times; for low-level storage media, each storage unit stores fewer bits of data, has a low data storage density, and can withstand more erasable and write times.

[0096] Figure 2 It is a schematic diagram of the structure of a flash memory. Figure 2 As shown, the flash memory includes a substrate (p-subtrate), a source (source N+), a drain (drain N+), a bit line (bit line), a floating gate (floating gate), an oxide layer (oxide layer), a control gate (control gate), and a word line (word line).

[0097] Data programming / writing principle of flash memory:

[0098] When writing data, a higher voltage is applied to the word line, the source is grounded, and an appropriate voltage is applied to the drain. At this time, the source and drain are turned on, and electrons flow between the source and drain. When the electron flow is strong enough, a tunneling effect occurs, and part of the charge passes through the oxide layer and enters the floating gate, thus completing the writing action.

[0099] Data reading principle of flash memory:

[0100] After the charge enters the floating gate, a potential is generated. Applying this potential to the word line can cause the voltage of the word line to shift. Assuming that the charge is "1", the absence of charge is "0". The data is read out in this way.

[0101] The principle of erasing data in flash memory:

[0102] Erasing data is to clear the charge in the floating gate. There are generally two ways:

[0103] 1. Apply a higher voltage to the source and ground the word line, so that a higher voltage difference is formed between the source and the word line. The strong electric potential energy will "suck" the electrons in the floating gate out and flow to the source across the oxide layer.

[0104] 2. Apply a positive voltage to the source and a higher negative voltage to the word line, so that a higher voltage difference is formed between the source and the word line. The strong electric potential energy will "squeeze" the charge in the floating gate out and flow to the source across the oxide layer.

[0105] Based on the above description, when a flash memory cell is programmed or erased, the charges pass through the oxide layer at a higher voltage. Since the mass of the charges is very small, they may pass through the oxide layer through the tunneling effect. This means that when a program or erase operation is performed, a small amount of charge passes through the oxide layer.

[0106] The higher the voltage, the greater the probability of charges passing through the oxide layer. These charges passing through will cause slight damage to the oxide layer. Although a single pass-through phenomenon has little effect on the oxide layer, if program or erase operations are performed frequently, these damages may gradually accumulate, causing the oxide layer to be more damaged.

[0107] Therefore, in general, when the voltage is higher, the damage to the oxide layer will be more serious. This is because more charges pass through the oxide layer, and the collision of ions and charges will cause changes and damage to the oxide layer structure.

[0108] It should be noted that the degree of damage to the oxide layer also depends on the voltage and time used when the memory is programmed or erased. The longer the memory is used, the higher the degree of damage to the oxide layer.

[0109] Figure 3 This is a schematic diagram of the charge loss process of a flash memory. Figure 3 As shown, damage to the oxide layer can cause charge loss on the floating gate.

[0110] from Figure 3As can be seen from (a) in FIG. 1 , the voltage is stable after the programming operation, and the number of charges in the floating gate is stable. For example, the number of charges in the floating gate is 7 at this time.

[0111] After a period of use, the flash memory can be Figure 3 The state shown in (a) becomes Figure 3 The state shown in (b) in .

[0112] from Figure 3 It can be seen from (b) that after a period of use, the charge in the floating gate is gradually lost and the amount of charge in the floating gate is gradually decreasing.

[0113] After a period of use, the flash memory can be Figure 3 The state shown in (b) becomes Figure 3 The state shown in (c) in .

[0114] from Figure 3 As can be seen from (b) in FIG. 1 , after a period of use, the charge in the floating gate is lost and the amount of charge in the floating gate decreases. For example, at this time, the amount of charge in the floating gate is 5, and 2 are lost.

[0115] It is understandable that the loss of charge in the flash memory can cause abnormal data retention capacity of the flash memory. Generally, a QLC storage unit is likely to have abnormal data retention capacity after 1.3K erases, a TLC storage unit is likely to have abnormal data retention capacity after 3K erases, and an SLC storage unit is likely to have abnormal data retention capacity after 100K erases.

[0116] Among them, the biggest reason why a storage unit of SLC may have abnormal data retention capacity after being erased and written 100K times is that SLC has a large judgment voltage range and is not prone to recognition errors caused by charge loss and threshold voltage deviation.

[0117] Figure 4 This is a diagram showing the relationship between charge loss and abnormal data retention. Figure 4 In this paper, QLC is used as an example to illustrate the relationship between charge loss and abnormal data retention capability.

[0118] from Figure 4 As can be seen from (a) in FIG. 1 , the number of charges in the floating gate is 7 and the charges in the floating gate are not lost. When the charges in the floating gate are not lost, the difference between the threshold voltage of each memory cell and the determination voltage is within a preset range.

[0119] It is understandable that the charge loss may cause the threshold voltage of at least one memory cell to drift toward a higher threshold value, which may result in a read error in the memory cell and reduce the reliability of data storage.

[0120] from Figure 4 As can be seen from (b) in FIG. 1 , the number of charges in the floating gate is 5 at this time, and the charges in the floating gate have been lost by 2. When the charges in the floating gate are lost, the difference between the threshold voltage of one or more memory cells and the judgment voltage may not be within the preset range.

[0121] For example, Figure 4 In (b), the threshold voltage of one of the memory cells drifts toward the high threshold value, so that the difference between the threshold voltage of the memory cell and the determination voltage is not within the preset range.

[0122] It can be seen that charge loss can cause changes in the threshold voltage, causing the difference between the threshold voltage and the judgment voltage to exceed the device recognition capability of the flash memory, resulting in data loss. The more bits of data stored in each storage unit in the storage medium, the greater the probability of error, and the more likely the flash memory data retention capability will be abnormal.

[0123] In summary, high-level storage media have fewer erasable times. As the number of writes, reads and / or deletes increases, the oxide layer of the flash memory may be damaged, causing the charge in the memory to be lost and the stored data to be read abnormally, that is, the data retention capacity of the flash memory becomes abnormal, causing the electronic device to be unable to be used normally and the overall life of the electronic device to be reduced.

[0124] In view of the above problems, the present application may provide a storage medium conversion method, electronic device, chip system, computer-readable storage medium and computer program product of a memory, which can downgrade the first storage medium as a whole to the second storage medium when at least one of the multiple storage areas of the first storage medium has a writing frequency greater than or equal to the writing frequency of the first storage medium, and the amount of user data currently stored in the memory is equal to the current total storage capacity of the first storage medium and the second storage medium. The number of bits stored in each storage unit in the first storage medium is greater than the number of bits stored in each storage unit in the second storage medium, and the writing frequency of the first storage medium is less than the writing frequency of the second storage medium. In this way, the data density of the memory can be reduced, the possibility of data recognition errors can be reduced, the writing frequency of the memory can be increased, and the service life of the memory can be extended.

[0125] The storage medium conversion method of the memory provided in the present application can be applied to electronic devices. The electronic device can be an electronic device having a memory and display hardware and corresponding software support.

[0126] For example, the electronic device may be a mobile phone, a tablet computer, a smart watch, a vehicle-mounted device, a laptop computer, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a smart car, a smart TV, a robot, or the like.

[0127] It should be pointed out that in some possible implementations, the electronic device may also be called a terminal device, user equipment (UE), etc., which is not limited in the embodiments of the present application.

[0128] For ease of explanation, Figure 5 In the description, the electronic device 100 is taken as a mobile phone as an example.

[0129] like Figure 1 As shown, the electronic device 100 may include a processor 101, a communication module 102, a display screen 103, a camera 104, a sensor 105, an internal memory 106, a USB interface 107, an external memory interface 108, a charging management module 109, a power management module 110, and a battery 111, etc.

[0130] The processor 101 may include one or more processing units, for example, the processor 101 may include an application processor (AP), a modem processor, a graphics processor, an image signal processor (ISP), a controller, a memory, a video stream codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated in one or more processors 101.

[0131] The display screen 103 is used to display images or videos in the human-computer interaction interface. The display screen 103 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), MiniLED, MicroLED, Micro-OLED, quantum dot light emitting diodes (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 103, where N is a positive integer greater than 1.

[0132] The external memory interface 108 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 101 through the external memory interface 108 to implement a data storage function. For example, files such as music and video streams are stored in the external memory card.

[0133] The internal memory 106 can be used to store computer executable program codes, which include instructions. The processor 101 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 106. The internal memory 106 can include a program storage area and a data storage area.

[0134] The program storage area may store an operating system, an application required for at least one function (such as a sound playback function, 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 106 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, a universal flash storage (UFS), etc.

[0135] Optionally, the electronic device 100 may further include peripheral devices, such as a mouse, buttons, indicator lights, a keyboard, a speaker, a microphone, etc.

[0136] It can be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100 .

[0137] In other embodiments, the electronic device 100 may include more or fewer components than shown, or combine some components, or separate some components, or arrange the components differently. The components shown may be implemented in hardware, software, or a combination of software and hardware.

[0138] Based on the above description, combined with Figure 6-Figure 8 , describes in detail the storage medium conversion method of the memory of the present application implemented by the electronic device. For the convenience of explanation, Figure 6-Figure 8 In the example, a mobile phone is used as an electronic device for illustration.

[0139] The mobile phone includes a flash memory, which includes three types of storage media, namely SLC, TLC and QLC.

[0140] Since SLC has fast read and write speeds and QLC has large storage capacity, when flash memory stores data, the data can be first stored in SLC and then stored from SLC to QLC; the data can also be directly stored in QLC.

[0141] QLC includes multiple storage areas, each of which has an erase and write lifespan of approximately 1.3k times. When the number of erase and write times of one storage area is greater than or equal to 1.3k times, the storage area can be downgraded to TLC, that is, the flash memory stores data in a QLC way, and then converts it to a TLC way.

[0142] As various data are read, written and / or stored in the mobile phone, the number of erase and write times of at least one storage area in the QLC is greater than or equal to 1.3k times, and the amount of data stored in the flash memory also increases, so that the amount of user data currently stored in the flash memory is equal to the sum of the current storage capacity of the SLC, the current storage capacity of the TLC and the current storage capacity of the QLC.

[0143] See also Figure 6-Figure 8 , Figure 6-Figure 8 A diagram of a human-computer interaction interface provided by an embodiment of the present application is shown.

[0144] In one implementation, when the number of times at least one storage area in the QLC is erased and written is greater than or equal to the preset number of times of the QLC (1.3k times), the amount of user data currently stored in the flash memory is equal to the sum of the current storage capacity of the SLC, the current storage capacity of the TLC and the current storage capacity of the QLC, and the amount of data currently stored is less than 3 / 4 of the total storage capacity of the memory, the mobile phone can display the following Figure 6 The interface 11 shown in (a) in FIG.

[0145] The interface 11 may include a control 1001, and the control 1001 is used to remind the user through text that there is a risk of data loss.

[0146] For example, the display style of the control 1001 is a capsule shape, and the text displayed in the control 1001 is “Data Loss Alert”.

[0147] Upon receiving the user's Figure 6 After the control 1001 shown in (a) is triggered, the mobile phone can Figure 6 The interface 11 shown in (a) in FIG. 1 changes to display as shown in FIG. Figure 6 The interface 12 shown in (b) in FIG.

[0148] Among them, the interface 12 may include a control 1002, which is used to remind the user through text that the memory device has run out of life and can automatically reduce the memory capacity to 3 / 4. The interface 12 may also include controls 1003 and 1004, where the control 1003 is used to indicate that the memory capacity can be reduced to 3 / 4 (3 / 4 means that after the QLC storage medium is completely converted to TLC, the memory capacity is reduced to 3 / 4), and the control 1004 is used to indicate that the memory capacity cannot be reduced to 3 / 4 (the QLC storage medium cannot be converted to TLC).

[0149] For example, the text displayed in the control 1002 is “Memory device life exhaustion alert. To extend the memory life, the memory capacity needs to be reduced to 3 / 4. Are you willing?”.

[0150] Upon receiving the user's Figure 6 After the control 1003 shown in (b) is triggered, the mobile phone can convert all the multiple storage areas of QLC into TLC and store data through the TLC data storage mode.

[0151] In addition, after the mobile phone converts all QLC's multiple storage areas into TLC, that is, switches the data storage through QLC to the data storage through TLC, it can automatically restart. After the mobile phone restarts, the mobile phone's flash memory changes from including QLC, TLC and SLC to including TLC and SLC.

[0152] When the flash memory of the mobile phone includes TLC and SLC, data is stored in TLC. When the mobile phone stores data in TLC, the data can be first stored in SLC and then stored in TLC from SLC; or the data can be directly stored in TLC.

[0153] Upon receiving the user's Figure 6 After the control 1004 shown in (b) is triggered, the mobile phone does not perform any operation, that is, no processing is performed, and there is still a risk of data loss.

[0154] That is, upon receiving the user's Figure 6After the control 1003 shown in (b) is triggered, the interface of the mobile phone is temporarily inoperable, and the background GC of the mobile phone converts all the multiple storage areas of QLC into TLC. After completion, the mobile phone can be restarted and switched to TLC FW operation.

[0155] Upon receiving the user's Figure 6 After the control 1004 shown in (b) is triggered, the mobile phone does not perform any processing, and the data stored in the memory is at risk of being lost.

[0156] In another implementation, when the number of erase / write times of at least one storage area in the QLC is greater than or equal to the preset number of erase / write times of the QLC, the amount of user data currently stored in the flash memory is equal to the sum of the current storage capacity of the SLC, the current storage capacity of the TLC, and the current storage capacity of the QLC, and the amount of data currently stored is greater than or equal to 3 / 4 of the total storage capacity of the flash memory, the mobile phone may display the following: Figure 6 The interface 11 shown in (a) in FIG.

[0157] Upon receiving the user's Figure 6 After the control 1001 shown in (a) is triggered, the mobile phone can Figure 6 The interface 11 shown in (a) in FIG. 1 changes to display as shown in FIG. Figure 7 Interface 13 shown in (a) in FIG.

[0158] Among them, the interface 13 may include a control 1005, which is used to remind the user through text that the life of the memory device is exhausted, and remind the user to delete the data that can be stored after the memory capacity is reduced to 3 / 4. The interface 13 may also include controls 1006 and 1007, where control 1006 is used to indicate that data can be deleted and the memory capacity can be reduced to 3 / 4 (3 / 4 means that after the QLC storage medium is completely converted to TLC, the memory capacity is reduced to 3 / 4), and control 1007 is used to indicate that data cannot be deleted and the memory capacity cannot be reduced to 3 / 4 (QLC storage medium cannot be converted to TLC).

[0159] For example, the text displayed in control 1005 is "Storage device life exhaustion alert. To extend the storage life, you need to reduce the storage capacity to 3 / 4. Are you willing? If you are willing, you need to delete **GB of data or back it up to other devices."

[0160] Upon receiving the user's Figure 7 After the control 1006 shown in (a) is triggered, the mobile phone can Figure 7 The interface 13 shown in (a) in FIG. 1 changes to display as shown in FIG. Figure 7 The interface 14 shown in (b) in FIG.

[0161] Among them, interface 14 is the interface of the file management APP. Interface 14 may include controls 1008, controls 1009, controls 1010, and multiple folders. Control 1008 is used to remind the user to delete or back up **GB of user data. Control 1009 is used to trigger the deletion of the file selected in interface 13. Control 1010 is used to trigger the backup of the file selected in interface 13 to a cloud disk or other device. Multiple folders are used to trigger the display of user data saved in the multiple folders.

[0162] After receiving the user's operation of selecting at least one folder in the plurality of folders, the mobile phone can select Figure 7 The interface 14 shown in (b) in FIG. 1 changes to display as shown in FIG. Figure 8 Interface 15 is shown.

[0163] Upon receiving the user's Figure 8 After the control 1009 shown performs a triggering operation, the mobile phone can delete the data in the above-selected folder.

[0164] The amount of data corresponding to the data in the deleted folder should be greater than or equal to the amount of data displayed in the control 1008 to remind the user to delete or back up.

[0165] For example, the amount of data displayed in control 1008 to remind the user to delete or back up is 80 GB, and the amount of data corresponding to the data in the deleted folder is 100 GB.

[0166] After the mobile phone deletes the data in the above selected folder, the mobile phone can convert all the multiple storage areas of QLC into TLC.

[0167] In some embodiments, upon receiving a user's Figure 8 After the control 1010 shown is triggered, the mobile phone can determine whether the amount of user data currently stored in the flash memory is less than or equal to the total storage capacity of TLC after the QLC storage medium is completely converted to TLC, that is, 3 / 4 of the actual total capacity of the memory capacity. If so, all multiple storage areas of QLC are converted to TLC.

[0168] In addition, after the mobile phone converts all QLC's multiple storage areas into TLC, that is, switches the data storage through QLC to the data storage through TLC, it can automatically restart. After the mobile phone restarts, the mobile phone's flash memory changes from including QLC, TLC and SLC to including TLC and SLC.

[0169] When the flash memory of the mobile phone includes TLC and SLC, data is stored in TLC. When the mobile phone stores data in TLC, the data can be first stored in SLC and then stored in TLC from SLC; or the data can be directly stored in TLC.

[0170] Or, upon receiving the user's Figure 8 After the control 1010 shown is triggered, the mobile phone can back up the data in the above-selected folder to a cloud disk or other devices.

[0171] The amount of data corresponding to the data in the backed-up folder should be greater than or equal to the amount of data displayed in the control 1008 to remind the user to delete or back up.

[0172] Upon receiving the user's Figure 7 After the control 1007 shown in (a) is triggered, the mobile phone does not perform any operation, that is, no processing is performed, and the data is still at risk of being lost.

[0173] That is, upon receiving the user's Figure 7 After the control 1006 shown in (a) is triggered, the mobile phone can display the interface of the file management APP and prompt to delete or back up. After selecting the data corresponding to the capacity reminded in interface 14, it is completed without prompting. The mobile phone cannot be operated. The background GC of the mobile phone converts all the multiple storage areas of QLC into TLC. After completion, the mobile phone can be restarted and switched to TLC FW operation.

[0174] Upon receiving the user's Figure 7 After the control 1007 shown in (a) is triggered, the mobile phone does not perform any processing, and the data stored in the memory is at risk of being lost.

[0175] In summary, when the number of erase and write times of at least one storage area in QLC is greater than or equal to the preset number of erase and write times of QLC, and the amount of user data currently stored in the flash memory is equal to the sum of the current storage capacity of SLC, the current storage capacity of TLC and the current storage capacity of QLC, the mobile phone can convert all multiple storage areas of QLC to TLC, that is, downgrade all multiple storage areas of QLC to TLC, and change data storage through QLC to data storage through TLC, thereby reducing the data density of the memory, reducing the possibility of data recognition errors, increasing the number of erasures and writes of the memory, and extending the service life of the memory.

[0176] In addition, combined Fig. 9 It should be noted that after the mobile phone is activated, as the user uses it, SLC and TLC can be gradually converted to QLC, the storage capacity of QLC gradually increases, and the storage capacity of SLC and TLC gradually decreases.

[0177] After the mobile phone is activated, in the initial use stage, the amount of user data that needs to be stored is small, and the amount of data that needs to be backed up from other mobile phones to this mobile phone is large. The read and write speed of SLC is fast, followed by TLC. Therefore, in the initial state, if Fig. 9 As shown in (a), SLC and TLC have larger storage capacity, while QLC has smaller storage capacity.

[0178] As the memory is used, the amount of user data that needs to be stored increases, and the SLC and TLC of the memory can be automatically and gradually converted to QLC, such as Fig. 9 As shown in (b), the storage capacity of QLC increases, and the storage capacity of SLC and TLC decreases. For example, QLC now includes two storage areas.

[0179] As the memory continues to be used, the number of erase and write times of at least one storage area of ​​the QLC is greater than or equal to 1.3 thousand times. At this time, it can be determined whether the amount of user data currently stored in the flash memory is equal to the sum of the current storage capacity of the SLC, the current storage capacity of the TLC and the current storage capacity of the QLC.

[0180] For example, as the memory continues to be used, the number of times the two storage areas of the QLC are erased and written is greater than or equal to 1.3 thousand times at the same time. Fig. 9 As shown in (c) in .

[0181] If the amount of user data currently stored in the flash memory is less than the sum of the current storage capacity of the SLC, the current storage capacity of the TLC and the current storage capacity of the QLC, only the storage area in the QLC whose erase and write times are greater than or equal to 1.3 thousand times is converted to TLC.

[0182] As the memory continues to be used, the SLC and TLC of the memory can be gradually converted to QLC, and the storage area in QLC is increasing, such as Fig. 9 As shown in (d) in FIG. 1 , there are more and more storage areas in QLC that have an erase / write count greater than or equal to 1.3 thousand times, that is, there are more and more storage areas that have reached the end of their lifespan.

[0183] When the number of times at least one storage area in the QLC is erased and written is greater than or equal to the preset number of times of the QLC, and the amount of user data currently stored in the flash memory is equal to the sum of the current storage capacity of the SLC, the current storage capacity of the TLC, and the current storage capacity of the QLC, the conversion condition for converting all storage areas in the QLC to TLC is triggered, and the mobile phone can display the following Figure 6 The interface shown in (a).

[0184] Based on the above scenario description, below, the present application takes an electronic device as an example, combined with the accompanying drawings and application scenarios, to elaborate on the storage medium conversion method of the memory provided in the embodiment of the present application.

[0185] The electronic device includes a memory, the memory includes a first storage medium and a second storage medium, the maximum erasable number of times of the second storage medium is greater than the maximum erasable number of times of the first storage medium, and the first storage medium includes multiple storage areas.

[0186] The first storage medium includes any one of the following storage media: multi-layer unit storage medium, three-layer unit storage medium, four-layer unit storage medium, and five-layer unit storage medium. The second storage medium includes any one or more of the following storage media: one-layer unit storage medium, multi-layer unit storage medium, three-layer unit storage medium, and four-layer unit storage medium.

[0187] The memory may be a flash memory, specifically, the memory may be any one of a universal flash storage (UFS), an embedded multimedia card (eMMC), a universal flash storage multi-chip package memory (ununited medial coronoid process, uMCP), a solid state drive (SSD), and an embedded multimedia card multi-chip package memory (embedded medial coronoid Process, eMCP).

[0188] See also Fig.10 , Fig.10 A schematic flow chart of a storage medium conversion method of a memory provided in an embodiment of the present application is shown.

[0189] like Fig.10 As shown, the storage medium conversion method of the memory provided by the present application may include:

[0190] S201. When the electronic device is activated, a first function is started, where the first function is used to record the number of times each storage area is erased and written in a plurality of storage areas.

[0191] Among them, the activation of an electronic device is the process of turning on the electronic device for the first time, connecting the electronic device to a mobile network for the first time and enabling it to be used normally.

[0192] After the electronic device is activated, various functions of the electronic device can be used normally, such as making calls, sending text messages, surfing the Internet, downloading and using applications, etc.

[0193] The erase and write times are the times that the storage medium in the memory is erased and programmed, and are used to indicate the service life of the storage medium in the memory.

[0194] It is understandable that each time an electronic device performs an erase operation on a memory, the number of erase and write times for each storage medium in the memory increases; and each time an electronic device performs a programming operation on a memory, the number of erase and write times for each storage medium in the memory increases. Therefore, as the electronic device is used, the number of erase and write times for each storage medium in the memory increases.

[0195] The electronic device has a first function for recording the number of times each storage area in a plurality of storage areas in a first storage medium is erased and written.

[0196] When the electronic device is activated, the electronic device can automatically start the first function, so that based on the first function, the electronic device can record the number of erase and write times for each of the multiple storage areas in the first storage medium, so as to perform corresponding operations when the number of erase and write times for the multiple storage areas is greater than or equal to the first number.

[0197] In some embodiments, the memory may allocate different registers to each storage medium in the memory, so that when the electronic device is activated, starting the first function includes: when the electronic device is activated, starting the first function of the register of the first storage medium.

[0198] For example, when the first storage medium is QLC and includes five storage areas, namely storage areas Q1, Q2, Q3, Q4 and Q5, when the electronic device is activated, the electronic device can record the number of erase and write times of Q1, Q2, Q3, Q4 and Q5 through the first function.

[0199] S202. When the number of erasure and write times of a first storage area among multiple storage areas is greater than or equal to a first number, determine whether the current amount of user data stored in the memory satisfies a first condition, the first storage area being any one of the multiple storage areas in the first storage medium, the first number being the maximum number of erasure and write times of the first storage medium, and the first condition being related to the current total storage capacity of the first storage medium and the second storage medium.

[0200] Among them, the greater the number of erase and write times, the higher the degree of oxidation of the memory, the higher the degree of damage to the oxide layer of the memory, the more unstable the amount of charge in the floating gate of the memory, and the risk of charge loss. Charge loss can cause abnormalities in the data retention ability of the memory, the electronic equipment cannot be used normally, and the life of the memory is reduced.

[0201] Since the first number is the maximum number of erasable times of the first storage medium, when the number of erasures of a first storage area among multiple storage areas is greater than or equal to the first number, the electronic device can determine that the first storage area has reached the end of its service life and there is a risk of charge loss, which can cause abnormal data storage in the first storage area.

[0202] For example, when the first storage medium is QLC, the first number is 1300 times, and the first storage medium includes 5 storage areas, namely storage areas Q1, Q2, Q3, Q4 and Q5, if the number of erase and write times of Q3 among Q1, Q2, Q3, Q4 and Q5 is equal to 1300 times, the electronic device can determine that the storage area Q3 has reached the end of its service life, and the electronic device can perform corresponding operations.

[0203] Among them, after the electronic device is activated, the low-level storage medium can be gradually converted into a high-level storage medium, so that the storage capacity of the high-level storage medium gradually increases and the storage capacity of the low-level storage medium gradually decreases.

[0204] For example, the memory includes three storage media, which are SLC, TLC and QLC in order from low level to high level. QLC is the actual storage medium. SLC and TLC can be gradually converted to QLC, so that the storage capacity of QLC gradually increases, and the storage capacity of SLC and TLC gradually decreases.

[0205] In this way, as the electronic device is used, the total storage capacity of the first storage medium and the second storage medium may be different at different times.

[0206] It is understandable that, as the electronic device is used, the amount of user data that needs to be stored gradually increases, and the amount of user data stored in the memory is different at different times.

[0207] Based on the above description, it can be known that at different times, there are two relationships between the total storage capacity of the first storage medium and the second storage medium and the amount of user data stored in the memory, namely, the current amount of user data is equal to the current total storage capacity of the first storage medium and the second storage medium, and the current amount of user data is less than the current total storage capacity of the first storage medium and the second storage medium.

[0208] It can be seen that the first condition includes that the current user data amount is less than or equal to the second amount.

[0209] For example, when the first storage medium is QLC, the second storage medium is TLC, the first number is 1300 times, and the current total storage capacity of the first storage medium and the second storage medium is also 800GB, if the current user data volume is also 800GB, the electronic device can determine that the current user data volume is equal to the current total storage capacity of the first storage medium and the second storage medium; if the current user data volume is 700GB, the electronic device can determine that the current user data volume is less than the current total storage capacity of the first storage medium and the second storage medium.

[0210] In some embodiments, the memory may allocate different registers to each storage medium in the memory, and determine whether the current amount of user data stored in the memory satisfies a first condition when the number of erase and write times of the first storage area among multiple storage areas is greater than or equal to a first number, including: when the number of erase and write times of the first storage area recorded in the register is greater than or equal to the first number, determine whether the current amount of user data stored in the memory satisfies the first condition.

[0211] S203: When the current user data volume meets the first condition, convert the first storage medium into the second storage medium.

[0212] Based on S202, it can be known that the current amount of user data may change in real time. When the current amount of user data meets the first condition, the first storage medium cannot store the user data normally, the electronic device cannot be used normally, and there is a risk of large amount of data loss.

[0213] Thus, the electronic device can convert the first storage medium into the second storage medium, which can reduce the data density of the memory, reduce the possibility of data recognition errors, and extend the service life of the memory without affecting the user experience.

[0214] Combination Fig.11 , with memory as Figure 5 The memory 106 in the electronic device 100 shown in the figure, where the first storage medium is QLC and the second storage medium is TLC, and the maximum erasable times of QLC is 1300 times, is used as an example to illustrate the risk of the memory as the electronic device is used, and the risk of the memory after the first storage medium is converted into the second storage medium. Fig.11 In the figure, transparency is taken as an example to illustrate the life of the memory. The lower the transparency of the memory 106 is, the shorter the life of the memory is; the higher the transparency of the memory is, the longer the life of the memory is.

[0215] In the initial use of the electronic device 100, the memory 106 has no data storage risk, no life risk, and the memory 106 has no possibility of data recognition error, such as Fig.11As shown in (a) in FIG. 1 , at this time, the transparency of the memory 106 is the highest and the life of the memory 106 is longer.

[0216] As the electronic device 100 is used, the number of times the QLC in the memory 106 is erased and written reaches 1300 times, and the memory 106 may have data recognition errors, such as Fig.11 As shown in (b) in FIG. 1 , at this time, the transparency of the memory 106 is reduced, and the life of the memory 106 is at risk.

[0217] As the electronic device 100 continues to be used, the number of times the QLC in the memory 106 is erased and written reaches 1500 times, and the memory 106 may have data recognition errors or data loss, such as Fig.11 As shown in (c) in FIG. 1 , at this time, the transparency of the memory 106 is further reduced, and the life risk of the memory 106 is further increased.

[0218] After the electronic device converts the first storage medium in the memory 106 into the second storage medium, the memory 106 reduces the possibility of data recognition errors, such as Fig.11 As shown in (d) in FIG. 1 , at this time, the memory 106 is compared with Fig.11 (b) and Fig.11 The transparency of the memory 106 in (c) is shown in FIG. Fig.11 In (d), the transparency of the memory 106 is improved, and the service life of the memory 106 is improved.

[0219] The storage medium conversion method of the memory of the present application, through the first function of the electronic device, the electronic device can record the erasure number of each storage area in multiple storage areas, so as to perform corresponding operations when the erasure number of any one of the multiple storage areas is greater than or equal to the first number. When the erasure number of the first storage area in the multiple storage areas is greater than or equal to the first number, the first storage area reaches the end of its service life, and the memory has the possibility of data recognition errors. Therefore, the electronic device can determine whether the current user data volume stored in the memory meets the first condition. When the current user data volume meets the first condition, the first storage medium is converted to the second storage medium. Since the maximum erasable number of the second storage medium is greater than the maximum erasable number of the first storage medium, and the storage density of the second storage medium is less than the first storage medium, the first storage medium is converted to the second storage medium, which can reduce the data density of the memory, reduce the possibility of data recognition errors, and extend the service life of the memory without affecting the user experience; in other words, when any one of the multiple storage areas in the high-level storage medium of the electronic device reaches the storage life, and the current user data volume meets the first condition, the storage medium can be downgraded to exchange for the service life of the memory, so as to ensure the use time of the electronic device.

[0220] Based on the above Fig.10 In the description of S203, in some embodiments, the first condition includes that the current amount of user data is less than or equal to a second number, the second number is the current total storage capacity of the first storage medium and the second storage medium, and when the number of erase and write times of a first storage area among multiple storage areas is greater than or equal to the first number, determining whether the current amount of user data stored in the memory satisfies the first condition, including: when the number of erase and write times of a first storage area among multiple storage areas is greater than or equal to the first number, determining whether the current amount of user data stored in the memory is equal to the second number.

[0221] When the current user data volume meets the first condition, the first storage medium is converted into the second storage medium, including: when the current user data volume is equal to the second quantity, all multiple storage areas are converted into the second storage medium; when the current user data volume is less than the second quantity, the first storage area is converted into the second storage medium.

[0222] In addition, after the electronic device converts all of the multiple storage areas into the second storage medium, or converts the first storage area into the second storage medium, the electronic device may also stop converting the second storage medium into the first storage medium.

[0223] Next, combine Fig.12 , which introduces in detail the specific implementation process of the storage medium conversion method of the memory of the present application.

[0224] See also Fig.12 , Fig.12 A schematic flow chart of a storage medium conversion method of a memory provided in an embodiment of the present application is shown.

[0225] like Fig.12 As shown, the storage medium conversion method of the memory provided by the present application may include:

[0226] S301. When the electronic device is activated, a first function is started, where the first function is used to record the number of times each storage area is erased and written in a plurality of storage areas.

[0227] S302: When the number of times of erasing and writing a first storage area among the multiple storage areas is greater than or equal to a first number, determine whether the current amount of user data stored in the memory is equal to a second number.

[0228] Among them, S301 and S302 are respectively Fig.10 The implementation methods of S201 and S202 in the illustrated embodiment are similar and will not be described in detail here.

[0229] When the current amount of user data stored in the memory is equal to the second amount, the electronic device may execute S303; when the current amount of user data stored in the memory is less than the second amount, the electronic device may execute S306.

[0230] S303: When the current user data amount is equal to the second amount, convert all of the multiple storage areas into the second storage medium.

[0231] When the current user data amount is equal to the second amount, the current user data has fully stored the current first storage medium and the second storage medium, and the risk of large-scale loss of user data is high. The electronic device can convert all multiple storage areas into the second storage medium.

[0232] For example, when the first storage medium is QLC, the second storage medium is TLC, the first number is 1300 times, and the current total storage capacity of QLC and TLC is 800GB, if the current user data volume is also 800GB, the electronic device can determine that the current user data volume is equal to the current total storage capacity of QLC and TLC, and the electronic device can convert all multiple storage areas in QLC into TLC.

[0233] For example, when the first storage medium is QLC, the second storage medium includes TLC and SLC, the first number is 1300 times, and the current total storage capacity of QLC, TLC and SLC is 800GB, if the current user data volume is also 800GB, the electronic device can determine that the current user data volume is equal to the current total storage capacity of QLC, TLC and SLC, and the electronic device can convert all multiple storage areas in QLC into TLC, that is, convert QLC into a storage medium that is one level lower than QLC among TLC and SLC.

[0234] In some embodiments, when the current user data amount is equal to the second amount, converting all of the multiple storage areas into the second storage medium includes:

[0235] Step 3031a: When the current user data amount is equal to the second amount, determine whether the current user data amount is less than the third amount.

[0236] The third quantity is the storage capacity of the second storage medium when all of the multiple storage areas are converted into the second storage medium.

[0237] It is understandable that, since the storage medium of the high level has a low storage density and a large storage capacity, and the storage medium of the low level has a large storage density and a small storage capacity, if the storage medium of the high level is converted to the storage medium of the low level, the storage capacity will become smaller. The total storage capacity of the memory is the storage capacity of the storage medium of the highest level when all the storage media of the low level are converted to the storage medium of the highest level.

[0238] For example, the total storage capacity of the memory is 1 TB, and 1 TB is the storage capacity of the first storage medium when the second storage medium is completely converted into the first storage medium.

[0239] Based on this, when the total storage capacity of the memory is 1TB, when the first storage medium is QLC and the second storage medium is TLC, since the storage density of TLC is 3 / 4 of QLC, after converting QLC to TLC, the storage capacity of TLC will become 768GB.

[0240] Based on the above description, it can be seen that the first storage medium has a large storage density and a large storage capacity, and the second storage medium has a small storage density and a small storage capacity. When the current amount of user data is equal to the second amount, if the first storage medium is directly converted to the second storage medium, the storage capacity becomes smaller and the current user data cannot be completely stored in the second storage medium.

[0241] It can be seen that when the current amount of user data is equal to the second number, if all the multiple storage areas in the first storage medium are directly converted to the second storage medium, storage may not be possible. Therefore, it is necessary to determine whether the current amount of user data is less than the third number before converting all the multiple storage areas in the first storage medium to the second storage medium.

[0242] Step 3032a: When the current amount of user data is less than the third amount, a first interface is displayed, wherein the first interface includes a first control, and the first control is used to trigger conversion of all of the multiple storage areas into the second storage medium.

[0243] The specific implementation of the first interface can be found in Figure 6 Related description of interface 12 shown in (b) in FIG.

[0244] For the specific implementation of the first control, please refer to Figure 6 Related description of control 1003 in interface 12 shown in (b).

[0245] It should be understood that the above description uses the first interface as interface 12 and the first control as control 1003 as an example; this application does not limit the specific implementation method of the first interface, and the display position, display style, display size and other parameters of the first control.

[0246] Step 3033a: In response to a first operation on the first control, convert all of the multiple storage areas into a second storage medium.

[0247] The specific implementation of the first operation can be found in Figure 6 Detailed description of the operation of control 1003 in interface 12 shown in (b).

[0248] Receiving the first operation of the first control indicates that the user agrees to convert all of the multiple storage areas in the first storage medium into the second storage medium, so that the electronic device can convert all of the multiple storage areas into the second storage medium.

[0249] In some embodiments, when the current user data amount is less than the third amount, displaying the first interface includes:

[0250] When the current amount of user data is less than a third amount, a second interface is displayed, wherein the second interface includes a second control, and the second control is used to remind the user that there is a risk of loss of data stored in the memory, and to trigger the display of the first control; in response to a second operation on the second control, the first interface is displayed.

[0251] The specific implementation of the second interface can be found in Figure 6 Related description of interface 11 shown in (a) in FIG.

[0252] For the specific implementation of the second control, please refer to Figure 6 Related description of control 1001 in interface 11 shown in (a).

[0253] The specific implementation of the second operation can be found in Figure 6 Detailed description of the operation of control 1001 in interface 11 shown in (a).

[0254] It should be understood that the above description uses the second interface as interface 11 and the second control as control 1001 as an example; this application does not limit the specific implementation method of the second interface, and the display position, display style, display size and other parameters of the second control.

[0255] Specifically, when the current amount of user data is less than the third amount, the electronic device can display a second interface, remind the user through the content of the second control in the second interface that there is a risk of loss of data stored in the memory, and provide the user with a function of converting the first storage medium into the second storage medium through the second control.

[0256] The present application does not specifically limit the text content in the second control used to remind the user that there is a risk of loss of data stored in the memory.

[0257] In some other embodiments, when the current user data amount is equal to the second amount, converting all of the multiple storage areas into the second storage medium includes:

[0258] Step 3031b: When the current user data amount is equal to the second amount, determine whether the current user data amount is less than the third amount.

[0259] Step 3032b: When the current amount of user data is greater than or equal to a third amount, a third interface is displayed, the third interface includes a third control, and the third control is used to trigger the conversion of multiple storage areas to the second storage medium when a fourth amount of current user data is deleted or backed up, the fourth amount is greater than or equal to a fifth amount, and the fifth amount is the amount corresponding to the difference between the storage capacity of the second storage medium and the current amount of user data when all the multiple storage areas are converted to the second storage medium.

[0260] The specific implementation of the third interface can be found in Figure 7 Related description of interface 13 shown in (a) in FIG.

[0261] For the specific implementation of the third control, please refer to Figure 7 Related description of control 1006 in interface 13 shown in (a).

[0262] It should be understood that the above description uses the third interface as interface 13 and the third control as control 1006 as an example; this application does not limit the specific implementation method of the third interface, and the display position, display style, display size and other parameters of the third control.

[0263] Taking the fifth quantity as an example, if the first storage medium is QLC, the second storage medium is TLC, the current storage capacity of QLC is 400GB, the storage density of TLC is 3 / 4 of QLC, after converting QLC to TLC, the storage capacity of TLC becomes 100GB, and the current user data is 200GB, then the fifth quantity is 200GB-100GB=100GB.

[0264] Based on this, the fourth number is greater than or equal to the fifth number, so the fourth number is greater than or equal to 100 GB.

[0265] It can be understood that when the fourth amount of current user data is deleted or backed up, when all multiple storage areas are converted into the second storage medium, the second storage medium can completely store the current user data. Therefore, the electronic device needs to delete or back up the fourth amount of current user data before the electronic device can convert all multiple storage areas into the second storage medium. Otherwise, the electronic device cannot convert all multiple storage areas into the second storage medium.

[0266] Step 3033b: In response to a third operation on the third control, a fourth amount of current user data is deleted or backed up, and all of the multiple storage areas are converted into a second storage medium.

[0267] The first storage medium has a large storage density and a large storage capacity, while the second storage medium has a small storage density and a small storage capacity. When the current amount of user data is greater than or equal to the third amount, if the first storage medium is directly converted to the second storage medium, the storage capacity becomes smaller and the current user data cannot be fully stored in the second storage medium.

[0268] Therefore, the fourth amount of current user data needs to be deleted or backed up before the electronic device can convert all of the multiple storage areas into the second storage medium.

[0269] In some embodiments, when the current user data amount is greater than or equal to the third amount, displaying a third interface includes:

[0270] When the current amount of user data is greater than or equal to the third amount, a fourth interface is displayed, wherein the fourth interface includes a fourth control, and the fourth control is used to remind the user that there is a risk of loss of data stored in the memory, and to trigger the display of the third control; in response to a fourth operation on the fourth control, the third interface is displayed.

[0271] The fourth interface may be the same as or different from the second interface.

[0272] When the fourth interface is the same as the second interface, the specific implementation of the fourth interface can be found in Figure 6 Related description of interface 11 shown in (a) in FIG.

[0273] The specific implementation of the fourth control can be found in Figure 6 Related description of control 1001 in interface 11 shown in (a).

[0274] Specifically, when the current amount of user data is greater than or equal to the third amount, the electronic device can display a fourth interface, remind the user through the content of the fourth control in the fourth interface that there is a risk of loss of data stored in the memory, and provide the user with a function of converting the first storage medium into the second storage medium through the fourth control.

[0275] It should be understood that the above description uses the fourth interface as interface 11 and the fourth control as control 1001 as an example; this application does not limit the specific implementation method of the fourth interface, and the display position, display style, display size and other parameters of the fourth control.

[0276] In some embodiments, in response to a third operation on a third control, deleting a fourth amount of current user data, and converting all of the multiple storage areas into a second storage medium, includes:

[0277] In response to a third operation on a third control, a fifth interface is displayed, the fifth interface including a fifth control and current user data stored in a memory, the fifth control being used to trigger deletion of the current user data; in response to a fifth operation on the fifth interface, selected data in the current user data is determined, and the amount of the selected data is greater than or equal to a fourth amount; in response to a sixth operation on the fifth control, the selected data is deleted, and all multiple storage areas are converted into a second storage medium.

[0278] The specific implementation of the fifth interface can be found in Figure 7 Related description of interface 14 shown in (b) in FIG.

[0279] The specific implementation of the fifth control can be found in Figure 7 Related description of control 1009 in interface 14 shown in (b).

[0280] The specific implementation of the sixth operation can be found in Figure 7 Detailed description of the operation of control 1009 in interface 14 shown in (b).

[0281] After determining the selected data in the current user data, the electronic device may delete the selected data upon receiving the user's operation on the fifth control (sixth operation).

[0282] It should be understood that the above description uses the fifth interface as interface 14 and the fifth control as control 1009 as an example; this application does not limit the specific implementation method of the fifth interface, and the display position, display style, display size and other parameters of the fifth control.

[0283] The fifth operation can be implemented in multiple ways.

[0284] Exemplarily, the fifth operation includes a long press operation and a click operation; for example, a long press operation is performed on the current user data displayed in the fifth interface, and a check box can be displayed on the folder corresponding to the current user data. When receiving the user's operation on the check box, the electronic device can determine that the user data corresponding to the check box is the selected data.

[0285] Exemplarily, the fifth operation may be a voice operation; for example, a voice assistant is added to the electronic device, and after receiving a specific wake-up word input by the user's voice, the voice assistant can be woken up, and when an operation of selecting the user data that the user wants to select in the current user data is received by the user's voice input, the electronic device can determine that the user data corresponding to the selected box is the selected data.

[0286] In some embodiments, the fifth interface also includes a sixth control, the sixth control is used to trigger backing up the current user data to the first device, the first device and the electronic device are different devices, backing up a fourth amount of current user data, and converting all of the multiple storage areas into the second storage medium, including:

[0287] In response to a seventh operation on the sixth control, the selected data is backed up to the first device, and all of the multiple storage areas are converted into the second storage medium.

[0288] The specific implementation of the sixth control can be found in Figure 7 The specific implementation of the seventh operation can be found in the description of the control 1010 in the interface 14 shown in (b). Figure 7 Detailed description of the operation of control 1010 in interface 14 shown in (b).

[0289] It should be understood that the above description uses the sixth control as control 1010 as an example; this application does not limit parameters such as the display position, display style, and display size of the sixth control.

[0290] After determining the selected data in the current user data, the electronic device may back up the selected data to the first device upon receiving the user's operation on the sixth control (seventh operation).

[0291] Among them, the first device can be a cloud server, a mobile phone, a tablet computer, a vehicle-mounted device, a laptop computer, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a smart car, a smart TV, a robot and other devices.

[0292] This application does not limit the specific form of the first device.

[0293] S304: Use the first identifier to mark the second storage medium.

[0294] When the electronic device is activated, the second storage medium is in a state of gradually converting into the first storage medium, the storage capacity of the first storage medium gradually increases, and the storage capacity of the second storage medium gradually decreases.

[0295] That is, after converting the first storage medium into the second storage medium, the electronic device may still convert the second storage medium into the first storage medium again.

[0296] Based on the above description, it can be known that one of the conditions for converting the first storage medium into the second storage medium is that the number of erase and write times of the first storage area among the multiple storage areas in the first storage medium is greater than or equal to the maximum number of erasable times of the first storage medium. In other words, one of the conditions for converting the first storage medium into the second storage medium is that the first storage area has reached the end of its service life and there is a risk of charge loss. Charge loss can cause abnormalities in the data retention capacity of the flash memory and the electronic device cannot be used normally.

[0297] If after converting the first storage medium into the second storage medium, the electronic device converts the second storage medium into the first storage medium again, and the electronic device uses the first storage medium to store data again, there is still a risk of charge loss in the memory, resulting in abnormal data storage. Therefore, it is necessary to use the first identifier to mark the second storage medium after converting all multiple storage areas into the second storage medium, so as to prepare for stopping the conversion of the second storage medium into the first storage medium.

[0298] The present application does not specifically limit the form of the first identifier.

[0299] S305: Stop converting the second storage medium into the first storage medium according to the first identifier.

[0300] After the second storage medium is marked with the first identifier, the electronic device can stop converting the second storage medium into the first storage medium according to the first identifier, thereby avoiding abnormal data storage capability caused by converting the second storage medium into the first storage medium again.

[0301] For example, if the first storage medium is QLC and the second storage medium is TLC, when converting QLC to TLC, the electronic device can mark the TLC with a first identifier, so that the electronic device can stop converting TLC to QLC according to the first identifier.

[0302] S306: When the current amount of user data is less than the second amount, convert the first storage area into a second storage medium.

[0303] When the current amount of user data is less than the second amount, the current user data is not fully stored in the first storage medium and the second storage medium of the current storage capacity. Therefore, the electronic device does not need to convert all the multiple storage areas in the first storage medium into the second storage medium. The first storage area can be converted into the second storage medium to extend the service life of the entire memory.

[0304] In addition, since only the first storage area among the multiple storage areas in the first storage medium has a number of erase and write times greater than or equal to the maximum number of erasable times of the first storage medium, that is, it has reached its service life, other storage areas except the first storage area in the first memory have not reached their service life and can continue to be used, thereby ensuring the storage capacity of the memory.

[0305] For example, when the first storage medium is QLC, the second storage medium is TLC, the first number is 1300 times, and the first storage medium includes 5 storage areas, namely storage areas Q1, Q2, Q3, Q4 and Q5, if the number of erase and write times of Q3 among Q1, Q2, Q3, Q4 and Q5 is equal to 1300 times, it is determined that the storage area Q3 has reached the end of its service life. At this time, if the current user data volume is 400GB, the current total storage capacity of QLC and TLC is 500GB, the current user data volume is less than the second number, and the electronic device converts Q3 into the second storage medium.

[0306] For example, when the first storage medium is QLC, the second storage medium includes SLC and TLC, the first number is 1300 times, and the first storage medium includes 5 storage areas, namely storage areas Q1, Q2, Q3, Q4 and Q5, if the number of erase and write times of Q3 among Q1, Q2, Q3, Q4 and Q5 is equal to 1300 times, it is determined that the storage area Q3 has reached the end of its service life. At this time, if the current user data volume is 400GB, the current total storage capacity of SLC, QLC and TLC is 500GB, the current user data volume is less than the second number, and the electronic device converts Q3 into the second storage medium.

[0307] S307: Use the second identifier to mark the second storage medium corresponding to the first storage area.

[0308] When the electronic device is activated, the second storage medium is in a state of gradually converting into the first storage medium, the storage capacity of the first storage medium gradually increases, and the storage capacity of the second storage medium gradually decreases.

[0309] That is, after converting the first storage medium into the second storage medium, the electronic device may still convert the second storage medium into the first storage medium again.

[0310] Since one of the conditions for converting the first storage area into the second storage medium is that the number of times the first storage area in the first storage medium can be erased and written is greater than or equal to the maximum number of times the first storage medium can be erased and written, in other words, one of the conditions for converting the first storage area into the second storage medium is that the first storage area has reached the end of its service life and there is a risk of charge loss. Charge loss can cause abnormalities in the data retention capability of the flash memory and make it impossible for the electronic device to be used normally.

[0311] If after converting the first storage area to the second storage medium, the electronic device converts the second storage medium to the first storage medium again, and the electronic device stores data through the first storage area again, there is still a risk of charge loss in the memory, resulting in abnormal data storage. Therefore, after converting the first storage area to the second storage medium, it is necessary to use a second identifier to mark the second storage medium corresponding to the first storage area, so as to prepare for stopping the conversion of the second storage medium corresponding to the first storage area to the first storage medium.

[0312] For example, when the first storage medium is QLC, the second storage medium is TLC, the first number is 1300 times, and the first storage medium includes 5 storage areas, namely storage areas Q1, Q2, Q3, Q4 and Q5, if the number of erase and write times of Q3 among Q1, Q2, Q3, Q4 and Q5 is equal to 1300 times, it is determined that the storage area Q3 has reached the end of its service life. At this time, if the current user data volume is 400GB, the current total storage capacity of QLC and TLC is 500GB, and the current user data volume is less than the second number, the electronic device converts Q3 into the second storage medium and marks Q3 with a second identifier.

[0313] The present application does not specifically limit the form of the second identifier; the second identifier may be the same as or different from the first identifier.

[0314] S308. Stop converting the second storage medium corresponding to the first storage area into the first storage medium according to the second identifier.

[0315] After marking the first storage area with the second identifier, the electronic device can stop converting the second storage medium corresponding to the first storage area into the first storage medium according to the second identifier, thereby avoiding abnormal data storage capability caused by converting the second storage medium into the first storage medium again.

[0316] For example, when the first storage medium is QLC, the second storage medium is TLC, the first number is 1300 times, and the first storage medium includes 5 storage areas, namely storage areas Q1, Q2, Q3, Q4 and Q5, if the number of erase and write times of Q3 is equal to 1300 times, and the current user data volume is 400GB, the current total storage capacity of QLC and TLC is 500GB, and the current user data volume is less than the second number, the electronic device converts Q3 to the second storage medium and marks Q3 with a second identifier. Thus, the electronic device can stop converting TLC to QLC according to the second identifier.

[0317] It should be noted that S301-S308 can be regarded as the first time that a storage area among multiple storage areas in the first storage medium has an erase and write count greater than or equal to the first number; that is, when a storage area among multiple storage areas has an erase and write count greater than or equal to the first number, the electronic device can determine whether the current amount of user data stored in the memory is equal to the second number. If the current amount of user data is equal to the second number, the electronic device can convert all multiple storage areas into the second storage medium.

[0318] If the current amount of user data is less than the second amount, the electronic device may convert the first storage area into a second storage medium.

[0319] When the current amount of user data is less than the second number and the electronic device converts the first storage area into the second storage medium, the electronic device can continue to record the number of erase and write times of other storage areas among the multiple storage areas. When the number of erase and write times of a storage area is greater than or equal to the first number again, the electronic device can again determine whether the current amount of user data stored in the memory is equal to the second number. If the current amount of user data is equal to the second number, the electronic device can convert all the multiple storage areas into the second storage medium.

[0320] If the current user data amount is less than the second amount, the electronic device may convert the storage area whose re-erasing times is greater than or equal to the first amount into a second storage medium.

[0321] If the second storage medium includes two types of storage media, and a storage area in the multiple storage areas in the first storage medium has an erase and write count greater than or equal to a first number, and the current amount of user data is equal to a second number, the electronic device can convert all of the multiple storage areas into higher-level storage media in the second storage medium.

[0322] If the current amount of user data is less than the second amount, the electronic device may convert the first storage area into a higher-level storage medium in the second storage medium.

[0323] When the current amount of user data is equal to the second quantity and the electronic device converts all multiple storage areas into high-level storage media in the second storage medium, the electronic device can continue to record the number of erase and write times of each storage area in the high-level storage medium in the second storage medium. When the number of erase and write times of any storage area is greater than or equal to the maximum number of erasable times of the high-level storage medium in the second storage medium, and the current amount of user data is equal to the second quantity, the electronic device can convert the high-level storage medium in the second storage medium into a low-level storage medium in the second storage medium.

[0324] For example, when the first storage medium is QLC, the second storage medium is TLC, the first number is 1300 times, and the first storage medium includes 5 storage areas, namely storage areas Q1, Q2, Q3, Q4 and Q5, if the number of erase and write times of Q3 is equal to 1300 times, the electronic device can determine whether the current amount of user data is equal to the second number. If the current amount of user data is 500GB, the current total storage capacity of QLC and TLC is 500GB, the current amount of user data is equal to the second number, and the electronic device converts Q1, Q2, Q3, Q4 and Q5 into TLC.

[0325] If the current amount of user data is 400 GB, the current total storage capacity of QLC and TLC is 500 GB, and the current amount of user data is less than the second amount, the electronic device converts Q3 to TLC.

[0326] Next, the electronic device can continue to record the erase and write counts of other storage areas in the multiple storage areas in QLC through the first function. If the erase and write count of Q2 is equal to 1300 times, the electronic device can determine whether the current user data volume is equal to the second quantity. If the current user data volume is 600GB, the current total storage capacity of QLC and TLC is 600GB, the current user data volume is equal to the second quantity, and the electronic device converts Q1, Q2, Q4 and Q5 into TLC.

[0327] If the current amount of user data is 500 GB, the current total storage capacity of QLC and TLC is 600 GB, and the current amount of user data is less than the second amount, the electronic device converts Q2 to TLC.

[0328] For example, when the first storage medium is QLC, the second storage medium includes TLC and SLC, the maximum number of erasable times of QLC is 1300 times, the maximum number of erasable times of TLC is 3000 times, and QLC includes 5 storage areas, Q1, Q2, Q3, Q4 and Q5, if the number of erasures of Q3 is equal to 1300 times, the electronic device can determine whether the current amount of user data is equal to the current total storage capacity of QLC, TLC and SLC. If the current amount of user data is 500GB, the current total storage capacity of QLC, TLC and SLC is 500GB, the current amount of user data is equal to the current total storage capacity of QLC, TLC and SLC, and the electronic device converts all Q1, Q2, Q3, Q4 and Q5 into TLC.

[0329] Next, when TLC includes 5 storage areas, namely T1, T2, T3, T4 and T5, if the number of erase and write times of T2 is equal to 3000 times, the electronic device can determine whether the current amount of user data is equal to the current total storage capacity of TLC and SLC; if the current amount of user data is 500GB and the current total storage capacity of TLC and SLC is 500GB, the current amount of user data is equal to the current total storage capacity of TLC and SLC, and the electronic device converts all T1, T2, T3, T4 and T5 to SLC.

[0330] If the current amount of user data is 500 GB, the current total storage capacity of QLC, TLC and SLC is 600 GB, and the current amount of user data is less than the second amount, the electronic device only converts Q3 to TLC.

[0331] In the present application, when the current amount of user data is less than the second amount, the current user data is not fully stored in the current first storage medium and the second storage medium, and there is no need to convert all of the multiple storage areas in the first storage medium into the second storage medium. The electronic device can only convert the first storage area into the second storage medium to extend the service life of the entire memory; and, since the other storage areas in the first memory except the first storage area have not reached their service life, the other storage areas except the first storage area can continue to be used to store user data, thereby ensuring the storage capacity of the memory.

[0332] After converting the first storage area into the second storage medium, if the electronic device converts the second storage medium into the first storage medium again, the electronic device can store data through the first storage area again. There is still a risk of charge loss, resulting in abnormal data storage. Therefore, it is necessary to stop converting the second storage medium corresponding to the first storage area into the first storage medium after converting the first storage area into the second storage medium.

[0333] In addition, when the current user data volume is equal to the second quantity, the current user data has been fully stored in the current first storage medium and the second storage medium, and the risk of large-scale loss of user data is high. The electronic device can convert all of the multiple storage areas into the second storage medium. After converting the first storage area into the second storage medium, if the electronic device converts the second storage medium into the first storage medium again, the electronic device can use the first storage medium to store data again, but there is still a risk of charge loss, resulting in abnormal data storage. Therefore, it is necessary to stop converting the second storage medium into the first storage medium after converting all of the multiple storage areas into the second storage medium.

[0334] In addition, when the number of erase and write times of the first storage area in the first storage medium is greater than or equal to the maximum number of erasable times of the first storage medium, and the current amount of user data is equal to the current total storage capacity of the first storage medium and the second storage medium, the electronic device can make relevant reminders to the user through the interface, and guide the user to convert the first storage medium to the second storage medium according to the operation reminders on the interface. In this way, the user can understand the consequences and benefits of the plan to convert the first storage medium to the second storage medium, and the user can determine whether to convert the first storage medium to the second storage medium, thereby ensuring the user's usage experience.

[0335] Exemplarily, the present application also provides a storage medium conversion device for a memory.

[0336] Next, combine Fig.13 , a storage medium conversion device of a memory provided in one embodiment of the present application is described in detail.

[0337] See also Fig.13 , Fig.13 A schematic block diagram of a storage medium conversion device of a memory provided in an embodiment of the present application is shown.

[0338] like Fig.13 As shown, the storage medium conversion device of the memory can be integrated in an electronic device to implement the operations corresponding to the electronic device in the embodiment of the above method. The storage medium conversion device 400 of the memory of the present application may include: a starting module 401, a determination module 402 and a conversion module 403.

[0339] A start module 401, used to start a first function when the electronic device is activated, the first function is used to record the number of erasures and writes of each storage area in a plurality of storage areas;

[0340] A determination module 402, configured to determine whether the current amount of user data stored in the memory satisfies a first condition when the number of erasure and write times of a first storage area among the multiple storage areas is greater than or equal to a first number, the first storage area being any one of the multiple storage areas in the first storage medium, the first number being a maximum number of erasure and write times of the first storage medium, and the first condition being related to a current total storage capacity of the first storage medium and the second storage medium;

[0341] The conversion module 403 is used to convert the first storage medium into the second storage medium when the current user data volume meets the first condition.

[0342] In some embodiments, the first condition includes that the current user data amount is less than or equal to the second amount, the second amount is the current total storage capacity of the first storage medium and the second storage medium, and the determination module 402 is specifically used to:

[0343] When the number of times of erasing and writing of a first storage area among the plurality of storage areas is greater than or equal to a first number, it is determined whether the current amount of user data stored in the memory is equal to a second number.

[0344] In some embodiments, the conversion module 403 is specifically configured to:

[0345] When the current user data amount is equal to the second amount, all of the multiple storage areas are converted into the second storage medium; when the current user data amount is less than the second amount, the first storage area is converted into the second storage medium.

[0346] In some embodiments, the conversion module 403 is specifically configured to:

[0347] Stop converting the second storage medium into the first storage medium, wherein when the electronic device is activated, the second storage medium is in a state of gradually converting into the first storage medium, the storage capacity of the first storage medium gradually increases, and the storage capacity of the second storage medium gradually decreases.

[0348] In some embodiments, the conversion module 403 is specifically configured to:

[0349] The second storage medium is marked with the first identifier; and according to the first identifier, the conversion of the second storage medium into the first storage medium is stopped.

[0350] In some embodiments, the conversion module 403 is specifically configured to:

[0351] Stop converting the second storage medium corresponding to the first storage area into the first storage medium.

[0352] In some embodiments, the conversion module 403 is specifically configured to:

[0353] The first storage area is marked with a second identifier; and according to the second identifier, the conversion of the second storage medium corresponding to the first storage area into the first storage medium is stopped.

[0354] In some embodiments, the startup module 401 is specifically used to:

[0355] When the electronic device is activated, the first function of the register of the first storage medium is started; when the number of erase and write times of the first storage area among multiple storage areas is greater than or equal to the first number, it is determined whether the current amount of user data stored in the memory meets the first condition, including: when the number of erase and write times of the first storage area recorded in the register is greater than or equal to the first number, it is determined whether the current amount of user data stored in the memory meets the first condition.

[0356] In some embodiments, the conversion module 403 is specifically configured to:

[0357] When the current user data amount is equal to the second number, determine whether the current user data amount is less than a third number, the third number being the storage capacity of the second storage medium when all the multiple storage areas are converted into the second storage medium; when the current user data amount is less than the third number, display a first interface, the first interface including a first control, the first control being used to trigger the conversion of all the multiple storage areas into the second storage medium; in response to a first operation on the first control, convert all the multiple storage areas into the second storage medium.

[0358] In some embodiments, the conversion module 403 is specifically configured to:

[0359] When the current amount of user data is less than a third amount, a second interface is displayed, wherein the second interface includes a second control, and the second control is used to remind the user that there is a risk of loss of the current user data stored in the memory, and to trigger the display of the first control; in response to a second operation on the second control, the first interface is displayed.

[0360] In some embodiments, the conversion module 403 is specifically configured to:

[0361] When the current user data amount is equal to the second amount, determine whether the current user data amount is less than the third amount; when the current user data amount is greater than or equal to the third amount, display a third interface, the third interface including a third control, the third control is used to trigger the conversion of multiple storage areas to the second storage medium when deleting or backing up the current user data stored in the fourth amount of memory, the fourth amount is greater than or equal to the fifth amount, the fifth amount is the amount corresponding to the difference between the storage capacity of the second storage medium and the current user data amount when all the multiple storage areas are converted to the second storage medium; in response to the third operation on the third control, delete or back up the fourth amount of current user data, and convert all the multiple storage areas to the second storage medium.

[0362] In some embodiments, the conversion module 403 is specifically configured to:

[0363] When the current amount of user data is greater than or equal to the third amount, a fourth interface is displayed, wherein the fourth interface includes a fourth control, and the fourth control is used to remind the user that there is a risk of loss of the current user data stored in the memory, and to trigger the display of the third control; in response to a fourth operation on the fourth control, the third interface is displayed.

[0364] In some embodiments, the conversion module 403 is specifically configured to:

[0365] In response to a third operation on a third control, a fifth interface is displayed, the fifth interface including a fifth control and current user data stored in a memory, the fifth control being used to trigger deletion of the current user data; in response to a fifth operation on the fifth interface, selected data in the current user data is determined, and the amount of the selected data is greater than or equal to a fourth amount; in response to a sixth operation on the fifth control, the selected data is deleted, and all multiple storage areas are converted into a second storage medium.

[0366] In some embodiments, the fifth interface further includes a sixth control, which is used to trigger backing up current user data to the first device, the first device and the electronic device are different devices, and the conversion module 403 is specifically used to:

[0367] In response to a seventh operation on the sixth control, the selected data is backed up to the first device, and all of the multiple storage areas are converted into the second storage medium.

[0368] In some embodiments, the first storage medium includes storage media of any one level among multi-layer unit storage media, three-layer unit storage media, four-layer unit storage media and five-layer unit storage media; the second storage medium includes storage media of any one or more levels among single-layer unit storage media, multi-layer unit storage media, three-layer unit storage media and four-layer unit storage media.

[0369] In some embodiments, the memory is any one of a universal flash memory, an embedded multimedia card, a universal flash storage multi-chip package memory, a solid state drive, and an embedded multimedia card multi-chip package memory.

[0370] Exemplarily, the present application provides an electronic device, comprising one or more processors, a memory and one or more computer programs, wherein the one or more computer programs are stored in the memory, and when the computer programs are executed by one or more processors, the electronic device executes the storage medium conversion method of the memory in the previous embodiment.

[0371] Exemplarily, the present application provides a chip system, which includes a processor for calling and running a computer program from a memory, so that an electronic device equipped with the chip system executes the storage medium conversion method of the memory in the previous embodiment.

[0372] Exemplarily, the present application provides a computer-readable storage medium, including a computer program, which, when executed on an electronic device, enables the electronic device to execute the storage medium conversion method of the memory in the foregoing embodiment.

[0373] Exemplarily, the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the storage medium conversion method of the memory in the foregoing embodiment.

[0374] In the above embodiments, all or part of the functions can be implemented by software, hardware, or a combination of software and hardware. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer codes or instructions. When the computer program code or instructions are loaded and executed on a computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer code or instructions can be stored in a computer-readable storage medium. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integration. Available media can be magnetic media, (e.g., floppy disk, hard disk, tape), optical media (e.g., DVD), or semiconductor media (e.g., solid state disk (SSD)), etc.

[0375] A person skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by a computer program to instruct the relevant hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned method embodiments. The aforementioned storage medium includes: a read-only memory (ROM) or a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

Claims

1. A storage medium conversion method of a memory, characterized in that: Applied to an electronic device, the electronic device includes a memory, the memory includes a first storage medium and a second storage medium, the maximum number of erasable times of the second storage medium is greater than the maximum number of erasable times of the first storage medium, the first storage medium includes a plurality of storage areas, the method includes: When the electronic device is activated, a first function is started, wherein the first function is used to record the number of times each storage area is erased and written in the plurality of storage areas; When the number of erasure and writing times of a first storage area among the multiple storage areas is greater than or equal to a first number, determining whether the current amount of user data stored in the memory is equal to a second number, the first storage area being any one of the multiple storage areas in the first storage medium, the first number being a maximum number of erasure and writing times of the first storage medium, and the second number being a current total storage capacity of the first storage medium and the second storage medium; When the current user data amount is equal to the second amount, determining whether the current user data amount is less than a third amount, the third amount being the storage capacity of the second storage medium when all of the plurality of storage areas are converted into the second storage medium; When the current user data amount is less than the third amount, displaying a first interface, wherein the first interface includes a first control, and the first control is used to trigger conversion of all the multiple storage areas into the second storage medium; In response to a first operation on the first control, all of the plurality of storage areas are converted into the second storage medium.

2. The method according to claim 1, characterized in that When the number of times a first storage area among the multiple storage areas is erased and written is greater than or equal to a first number, determining whether the current amount of user data stored in the memory is equal to the second number includes: When the number of times a first storage area in the plurality of storage areas is erased and written is greater than or equal to the first number, determining whether the current amount of user data stored in the memory is less than or equal to the second number; The method further comprises: When the current user data amount is less than the second amount, the first storage area is converted into the second storage medium.

3. The method according to claim 2, characterized in that After converting all of the plurality of storage areas into the second storage medium, the method further includes: Stop converting the second storage medium into the first storage medium, wherein when the electronic device is activated, the second storage medium is in a state of gradually converting into the first storage medium, the storage capacity of the first storage medium gradually increases, and the storage capacity of the second storage medium gradually decreases.

4. The method according to claim 3, characterized in that The stopping of converting the second storage medium into the first storage medium comprises: Using the first identifier to mark the second storage medium; According to the first identifier, the conversion of the second storage medium into the first storage medium is stopped.

5. The method according to claim 2, characterized in that: After converting the first storage area into the second storage medium, the method further includes: Stop converting the second storage medium corresponding to the first storage area into the first storage medium.

6. The method according to claim 5, characterized in that The stopping of converting the second storage medium corresponding to the first storage area into the first storage medium includes: Using a second identifier, marking the second storage medium corresponding to the first storage area; According to the second identifier, the conversion of the second storage medium corresponding to the first storage area into the first storage medium is stopped.

7. The method according to any one of claims 1 to 6, characterized in that When the electronic device is activated, starting the first function includes: When the electronic device is activated, starting the first function of the register of the first storage medium; When the number of times a first storage area among the multiple storage areas is erased and written is greater than or equal to a first number, determining whether the current amount of user data stored in the memory satisfies a first condition includes: When the number of times the first storage area is erased and written recorded in the register is greater than or equal to the first number, it is determined whether the current amount of user data stored in the memory is equal to satisfying the first condition.

8. The method according to any one of claims 1 to 6, characterized in that When the current user data amount is less than the third amount, displaying the first interface includes: When the current user data amount is less than the third amount, displaying a second interface, wherein the second interface includes a second control, and the second control is used to remind the user that the current user data stored in the memory is at risk of being lost, and is used to trigger the display of the first control; In response to a second operation on the second control, the first interface is displayed.

9. The method according to any one of claims 1 to 6, characterized in that The method further comprises: When the current user data amount is greater than or equal to the third amount, displaying a third interface, the third interface including a third control, the third control being used to trigger conversion of all of the multiple storage areas to the second storage medium when deleting or backing up a fourth amount of current user data stored in the memory, the fourth amount being greater than or equal to a fifth amount, the fifth amount being an amount corresponding to a difference between a storage capacity of the second storage medium and the current user data amount when all of the multiple storage areas are converted to the second storage medium; In response to a third operation on the third control, the fourth amount of the current user data is deleted or backed up, and all of the plurality of storage areas are converted into the second storage medium.

10. The method according to claim 9, characterized in that When the current user data amount is greater than or equal to the third amount, displaying the third interface includes: When the current user data amount is greater than or equal to the third amount, displaying a fourth interface, wherein the fourth interface includes a fourth control, and the fourth control is used to remind the user that the current user data stored in the memory is at risk of being lost, and is used to trigger the display of the third control; In response to a fourth operation on the fourth control, the third interface is displayed.

11. The method according to claim 10, characterized in that In response to the third operation on the third control, deleting the fourth amount of the current user data and converting all of the plurality of storage areas into the second storage medium comprises: In response to the third operation on the third control, displaying a fifth interface, the fifth interface including a fifth control and current user data stored in the memory, the fifth control being used to trigger deletion of the current user data; In response to a fifth operation on the fifth interface, determining selected data in the current user data, wherein the amount of the selected data is greater than or equal to the fourth amount; In response to a sixth operation on the fifth control, the selected data is deleted, and all of the plurality of storage areas are converted into the second storage medium.

12. The method according to claim 11, characterized in that The fifth interface also includes a sixth control, the sixth control being used to trigger backing up the current user data to a first device, the first device being a different device from the electronic device, backing up the fourth amount of the current user data, and converting all of the multiple storage areas into the second storage medium, including: In response to a seventh operation on the sixth control, the selected data is backed up to the first device, and all of the multiple storage areas are converted into the second storage medium.

13. The method according to any one of claims 1 to 6, characterized in that The first storage medium includes any one or more layers of storage media among a multi-layer unit storage medium, a three-layer unit storage medium, a four-layer unit storage medium and a five-layer unit storage medium; The second storage medium includes any one or more levels of storage media among a one-layer unit storage medium, a multi-layer unit storage medium, a three-layer unit storage medium and a four-layer unit storage medium.

14. The method according to any one of claims 1 to 6, characterized in that The memory is any one of a general flash memory, an embedded multimedia card, a general flash storage multi-chip package memory, a solid state hard disk, and an embedded multimedia card multi-chip package memory.

15. An electronic device, characterized in that: include: One or more processors, a memory, and one or more computer programs; wherein the one or more computer programs are stored in the memory, and when the computer programs are executed by the one or more processors, the electronic device executes the storage medium conversion method of the memory as described in any one of claims 1 to 14.

16. A chip system, characterized in that: The chip system includes a processor for calling and running a computer program from a memory, so that an electronic device equipped with the chip system executes a storage medium conversion method of a memory as described in any one of claims 1 to 14.

17. A computer-readable storage medium comprising a computer program, characterized in that: When the computer program is executed on an electronic device, the electronic device is enabled to execute the storage medium conversion method of a memory according to any one of claims 1 to 14.

Citation Information

Patent Citations

  • Data storage method, data storage device and electronic equipment

    CN113360092A

  • Hard disk control method and related device

    US20220100406A1