Data writing method, data reading method, device, equipment and storage medium

By creating a copy data set for data sets that occupy less space in NAND flash, ensuring that the total footprint of the target data set is similar to the reference benchmark, it solves the read interference problem caused by frequent reads of NAND flash and reduces the risk of data corruption and maintenance costs.

CN118963645BActive Publication Date: 2025-03-25JIANGMEN SIYU TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410915086.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2025-03-25
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

NAND flash memory has read interference due to frequent reading, resulting in data corruption and increasing maintenance costs.

Method used

By obtaining the effect data sets corresponding to each of the various effect types, determine the footprint of each data set, and create a copy data set for data sets with smaller footprints, ensuring that the total footprint of all target data sets is similar to the reference benchmark and reducing the read frequency. Write these target data sets to NAND flash memory, and use different storage addresses to cyclically read data to avoid read interference.

Benefits of technology

It effectively avoids the read interference caused by frequent reads of NAND flash memory, reduces the risk of data corruption, and thus reduces the maintenance cost of NAND flash memory.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118963645B_ABST
    Figure CN118963645B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a data writing method, a data reading method, an apparatus, a device and a storage medium, and the data writing method includes: obtaining effect data sets corresponding to each of a plurality of effect types; determining the occupied space of each effect data set, and determining the first occupied space based on the occupied space of each effect data set; for any effect type, when the difference between the first occupied space and the occupied space of the corresponding effect data set is greater than or equal to the occupied space of the effect data set, creating several copy data sets for the effect data set, and determining the effect data set and each copy data set as the target data set corresponding to the effect type; and writing all the target data sets to NAND flash memory. The embodiment of the present application can avoid read interference caused by frequent reading of NAND flash memory, thereby reducing the maintenance cost of NAND flash memory.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to but is not limited to the field of data storage technology, and in particular to a data writing method, a data reading method, a device, a equipment and a storage medium. Background Art

[0002] Flash memory devices are high-performance, non-volatile storage devices that are widely used in data centers, mobile terminals and other occasions. They are an important storage medium. In NAND (NotAND) flash memories of types such as Multi-Level Cell (MLC), Triple-Level Cell (TLC), and Quad-Level Cell (QLC), there is a problem of read interference, which may cause data corruption.

[0003] At present, NAND flash memory is widely used in lighting systems, audio systems, video systems and other systems. NAND flash memory can store parameters used to control the above systems to produce corresponding effects. When the above systems cyclically produce a certain effect, it is necessary to frequently read the parameters at the same storage address in the NAND memory, which can easily cause read interference in the NAND flash memory, causing the data in the NAND memory to be frequently damaged. The NAND flash memory needs to be frequently repaired, increasing the maintenance cost of the NAND flash memory. Summary of the invention

[0004] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.

[0005] The embodiments of the present application provide a data writing method, a data reading method, an apparatus, a device and a storage medium, which can avoid read interference caused by frequent reading of NAND flash memory, thereby reducing the maintenance cost of NAND flash memory.

[0006] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present application proposes a data writing method, comprising: obtaining effect data sets corresponding to each of a plurality of effect types, wherein the effect data sets are used to store effect parameters, and the effect parameters corresponding to any two of the effect types are different; determining the occupied space of each of the effect data sets, and determining a first occupied space based on the occupied space of each of the effect data sets, wherein the first occupied space is greater than or equal to the occupied space of any one of the effect data sets; for any of the effect types, when the difference between the first occupied space and the occupied space of the corresponding effect data set is greater than or equal to the occupied space of the effect data set, creating several copy data sets for the effect data set, and determining the effect data set and each of the copy data sets as target data sets corresponding to the effect type, wherein the absolute value of the difference between the first occupied space and the total occupied space of all the target data sets corresponding to the effect type is less than the occupied space of the effect data set; writing all the target data sets to a NAND flash memory, wherein the NAND flash memory is used to store data read by a controller, and the controller is used to determine a target type among a plurality of the effect types, and cyclically read all the target data sets corresponding to the target type from the NAND flash memory.

[0007] In some embodiments, before writing all the target data sets to the NAND flash memory, the data writing method also includes: for any one of the effect types, when the difference between the first occupied space and the occupied space of the corresponding effect data set is less than the occupied space of the effect data set, determining the corresponding effect data set as the target data set corresponding to the effect type.

[0008] In some embodiments, the data writing method further includes: obtaining the total occupied space of all the target data sets in the NAND flash memory to obtain a second occupied space; obtaining the available space of the NAND flash memory, determining the ratio between the available space and the second occupied space as a first ratio, and rounding down the first ratio to obtain a first target number; controlling the NAND flash memory to copy all the target data sets N-1 times, wherein N is the first target number.

[0009] In some embodiments, creating several replica data sets for the effect data set includes: determining the ratio of the first occupied space to the occupied space of the corresponding effect data set as a second ratio, rounding up the second ratio to obtain a second target number; creating K-1 replica data sets for the effect data set, wherein K is the second target number.

[0010] In some embodiments, the data writing method further includes: obtaining storage addresses of all the target data sets in the NAND flash memory; constructing a configuration file based on the storage addresses and the corresponding effect types; and writing the configuration file to the NAND flash memory.

[0011] To achieve the above-mentioned purpose, the second aspect of an embodiment of the present application proposes a data reading method, comprising: determining a target type among multiple effect types; cyclically reading all target data sets corresponding to the target type from a NAND flash memory, wherein the target data set is written to the NAND flash memory by the data writing method described in the first aspect above.

[0012] In some embodiments, the cyclic reading of all target data sets corresponding to the target type from the NAND flash memory includes: cyclically reading all unmarked target data sets corresponding to the target type from the NAND flash memory; each time any one of the target data sets is read, determining the data status of the target data set currently being read, and when the data status is in an abnormal state, marking the target data set currently being read.

[0013] To achieve the above-mentioned purpose, the third aspect of an embodiment of the present application proposes a data writing device, including: an acquisition module, used to obtain effect data sets corresponding to each of a plurality of effect types, wherein the effect data sets are used to store effect parameters, and the effect parameters corresponding to any two of the effect types are different; a first processing module, used to determine the occupied space of each of the effect data sets, and determine a first occupied space based on the occupied space of each of the effect data sets, wherein the first occupied space is greater than or equal to the occupied space of any one of the effect data sets; a second processing module, used to, for any of the effect types, when the difference between the first occupied space and the occupied space of the corresponding effect data set is greater than or equal to When the occupied space of the effect data set is reached, several copy data sets are created for the effect data set, and the effect data set and each of the copy data sets are determined as target data sets corresponding to the effect type, wherein the absolute value of the difference between the first occupied space and the total occupied space of all the target data sets corresponding to the effect type is less than the occupied space of the effect data set; a writing module is used to write all the target data sets to a NAND flash memory, wherein the NAND flash memory is used to store data read by a controller, and the controller is used to determine a target type among a plurality of effect types, and cyclically read all the target data sets corresponding to the target type from the NAND flash memory.

[0014] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, it implements the data writing method described in the first aspect, or implements the data reading method described in the second aspect.

[0015] To achieve the above-mentioned purpose, the fifth aspect of an embodiment of the present application proposes a storage medium, which is a computer-readable storage medium, and the storage medium stores a computer program. When the computer program is executed by a processor, it implements the data writing method described in the first aspect above, or implements the data reading method described in the second aspect above.

[0016] The embodiments of the present application include at least the following beneficial effects: by acquiring an effect data set storing effect parameters, then determining the occupied spaces of the effect data sets corresponding to each of the multiple effect types, and then determining a first occupied space as a reference benchmark; when the difference between the first occupied space and the occupied space of the effect data set corresponding to any effect type is greater than or equal to the occupied space of the effect data set, creating several copy data sets for the effect data set, and since the copy data set and the effect data set store the same effect parameters, the effect data set and the corresponding copy data set are both used as target data sets corresponding to the effect type, and then all target data sets are written to the NAND flash memory, and since different target data sets in the NAND flash memory are located at different storage addresses, when subsequently cyclically reading all target data sets corresponding to the target type in the NAND flash memory, cyclic reading of data from different storage addresses in the NAND flash memory is achieved, which can avoid read interference caused by frequent reading of the NAND flash memory, reduce the risk of data damage, and thus reduce the maintenance cost of the NAND flash memory.

[0017] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings are used to provide further understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.

[0019] Figure 1 An optional flow chart of a data writing method provided in an embodiment of the present application;

[0020] Figure 2An optional visualization schematic diagram of a single effect file in a NAND flash memory before optimization provided in an embodiment of the present application;

[0021] Figure 3 An optional visualization schematic diagram of a single effect file in an optimized NAND flash memory provided in an embodiment of the present application;

[0022] Figure 4 An optional visualization schematic diagram of a multi-effect file in a NAND flash memory before optimization provided in an embodiment of the present application;

[0023] Figure 5 An optional visualization schematic diagram of a multi-effect file in an optimized NAND flash memory provided in an embodiment of the present application;

[0024] Figure 6 An optional visualization schematic diagram of a multi-effect file in a NAND flash memory after secondary optimization provided in an embodiment of the present application;

[0025] Figure 7 An optional flow chart of a configuration file reading process provided in an embodiment of the present application;

[0026] Figure 8 An optional flow chart of a data reading method provided in an embodiment of the present application;

[0027] Fig. 9 A schematic diagram of an optional structure of a data writing device provided in an embodiment of the present application;

[0028] Fig.10 A schematic diagram of an optional structure of a data reading device provided in an embodiment of the present application;

[0029] Fig.11 A schematic diagram of an optional hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0031] It should be noted that in each specific embodiment of the present application, when it comes to the need to perform relevant processing based on data related to the characteristics of the target object such as target object attribute information or attribute information set, the permission or consent of the target object will be obtained first, and the collection, use and processing of these data will comply with relevant laws, regulations and standards. Among them, the target object can be a user. In addition, when the embodiment of the present application needs to obtain the target object attribute information, the target object's separate permission or separate consent will be obtained by means of a pop-up window or jumping to a confirmation page, etc., and after the separate permission or separate consent of the target object is clearly obtained, the necessary target object-related data for enabling the normal operation of the embodiment of the present application will be obtained.

[0032] In the description of this application, “several” means one or more, “more” means more than two, “greater than”, “less than”, “exceed”, etc. are understood to exclude the number, and “above”, “below”, “within”, etc. are understood to include the number.

[0033] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims or the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0034] At present, NAND flash memory is widely used in lighting systems, audio systems, video systems and other systems. NAND flash memory can store parameters used to control the above systems to produce corresponding effects. When the above systems cyclically produce a certain effect, it is necessary to frequently read the parameters at the same storage address in the NAND memory, which can easily cause read interference in the NAND flash memory, causing the data in the NAND memory to be frequently damaged. The NAND flash memory needs to be frequently repaired, increasing the maintenance cost of the NAND flash memory.

[0035] Based on this, the present application provides a data writing method, a data reading method, an apparatus, a device and a storage medium, which can avoid read interference caused by frequent reading of NAND flash memory, thereby reducing the maintenance cost of NAND flash memory.

[0036] The data writing method, data reading method, device, equipment and storage medium provided in the embodiments of the present application are specifically described through the following embodiments. First, the data writing method in the embodiments of the present application is described.

[0037] The data writing method provided in the embodiment of the present application relates to the field of data storage technology. The data writing method provided in the embodiment of the present application can be applied to a terminal. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.

[0038] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including NAND flash memory.

[0039] The embodiments of the present application are further described below in conjunction with the accompanying drawings.

[0040] like Figure 1 As shown, Figure 1 An optional flow chart of a data writing method provided in an embodiment of the present application, the data writing method can be executed by a terminal, and the data writing method includes but is not limited to the following steps S110 to S140:

[0041] Step S110, obtaining effect data sets corresponding to each of the plurality of effect types.

[0042] Among them, the effect data set is used to store effect parameters. The effect parameters corresponding to any two effect types are different. The effect parameters refer to the control parameters of the target system. The effect parameters are used to control the target system to produce corresponding effects. Different effect parameters can control the target system to produce different effects. The different effects produced by the target system can be divided into different effect types. Therefore, different effect types correspond to different effect parameters.

[0043] Specifically, the target system may be a lighting system, an audio system, a video system or other systems. When the target system is a lighting system, the effect parameters are lighting effect control parameters, which may include brightness parameters, color temperature parameters, color parameters, illumination angle parameters, illumination time parameters, etc. of each light in the lighting system, and the effect parameters are used to control the lighting system to produce corresponding lighting effects; when the target system is an audio system, the effect parameters are sound effect control parameters, which may include volume parameters, reverberation parameters, etc., and the effect parameters are used to control the audio system to produce corresponding audio effects; when the target system is a video system, the effect parameters are video playback control parameters, which may include video switching parameters, video special effects parameters, playback speed parameters, etc., and the effect parameters are used to control the video system to produce corresponding display effects.

[0044] It should be noted that the effect data sets corresponding to multiple effect types can be stored in the same effect file or in different effect files. For example, the first effect file is used to store the effect data set corresponding to the first effect type, and the second effect file is used to store the effect data set corresponding to the second effect type. The embodiment of the present application is not limited here.

[0045] Step S120: determine the occupied space of each effect data set, and determine the first occupied space based on the occupied space of each effect data set.

[0046] The space occupied by the effect data set refers to the size of the space actually used by the effect data set in the storage device. Assuming that the space occupied by the effect data set is 1MB, it means that the space actually used by the effect data set in the storage device is 1MB. When the terminal obtains the effect data set, the terminal will store the effect data set in the storage device of the terminal. The terminal can determine the space occupied by the effect data set through the file system management function.

[0047] Among them, the first occupied space is greater than or equal to the occupied space of any effect data set. The first occupied space can be determined in a variety of ways. For example, the first occupied space can be the maximum value of the occupied spaces of each effect data set, and the first occupied space can also be N times the maximum value of the occupied spaces of each effect data set. No matter what sampling method is used to determine the first occupied space, as long as the first occupied space is greater than or equal to the occupied space of any effect data set, the embodiments of the present application are not limited here.

[0048] Specifically, since the effect data set is used to store effect parameters, the space occupied by the effect data set can represent the data volume of the corresponding effect parameters. When the space occupied by the effect data set is larger, the data volume representing the effect parameters is larger, and the single effect playback time of the effect type corresponding to the effect parameter set is longer. Conversely, when the space occupied by the effect data set is smaller, the data volume representing the effect parameters is smaller, and the single effect playback time of the effect type corresponding to the effect parameter set is shorter. Therefore, the space occupied by the effect data set is usually positively correlated with the single effect playback time of the corresponding effect type. Based on this, when playing an effect in a loop, when the space occupied by the effect data set is smaller, the single effect playback time of the effect type corresponding to the effect data set is shorter, and the effect parameter set is read more frequently.

[0049] Step S130, for any effect type, when the difference between the first occupied space and the occupied space of the corresponding effect data set is greater than or equal to the occupied space of the effect data set, create several copy data sets for the effect data set, and determine the effect data set and each copy data set as the target data set corresponding to the effect type.

[0050] The absolute value of the difference between the first occupied space and the total occupied space of all target data sets corresponding to the effect type is smaller than the occupied space of the effect data set.

[0051] Specifically, when the difference between the first occupied space and the occupied space of the effect data set corresponding to any effect type is greater than or equal to the occupied space of the effect data set, it means that the occupied space of the effect data set is significantly different from the first occupied space, that is, the occupied space of the effect data set is smaller. Since the occupied space of the effect data set is usually positively correlated with the single effect playback duration corresponding to the effect data set, the single effect playback duration corresponding to the effect data set with a smaller occupied space is shorter. At this time, a copy data set storing the same effect is created for the effect data set, and then the effect data set and the corresponding copy data sets are determined as the target data sets corresponding to the effect type; by creating a copy of the effect data set, the total occupied space of the target data set corresponding to any effect type is close to the first occupied space, that is, the total occupied space of the target data sets corresponding to various effect types is close, which is equivalent to optimizing the storage method of the effect data set. In the loop playback mode, the reading frequency of the target data set with a short single effect playback duration can be significantly reduced.

[0052] Step S140, writing all target data sets into the NAND flash memory.

[0053] Among them, NAND flash memory is a high-performance, non-volatile storage device. NAND flash memory can be used in SD cards. NAND flash memory is used to store data read by the controller. The controller is used to determine the target type among multiple effect types, and to cyclically read all target data sets corresponding to the target type from the NAND flash memory. Therefore, after the target data set is written to the NAND flash memory, the target data set in the NAND flash memory can be read by the controller of the target system, so that the controller obtains the effect parameters for controlling the target system to produce the corresponding effect.

[0054] Specifically, compared to cyclically reading the effect data set corresponding to the effect type, the effect data set corresponding to the effect type and each copy data set are read in sequence, that is, cyclically reading each target data set corresponding to the effect type, to achieve cyclic reading of effect parameters corresponding to the effect type, which can reduce the reading frequency of the effect data set, thereby avoiding read interference of NAND flash memory due to frequent reading.

[0055] Based on this, an effect data set storing effect parameters is obtained, and then the occupied spaces of the effect data sets corresponding to the multiple effect types are determined, thereby determining a first occupied space as a reference benchmark; when the difference between the first occupied space and the occupied space of the effect data set corresponding to any effect type is greater than or equal to the occupied space of the effect data set, a number of replica data sets are created for the effect data set. Since the replica data set and the effect data set store the same effect parameters, the effect data set and the corresponding replica data set are both used as target data sets corresponding to the effect type, and then all target data sets are written to the NAND flash memory. Since different target data sets in the NAND flash memory are located at different storage addresses, when all target data sets corresponding to the target type in the NAND flash memory are subsequently cyclically read, data is cyclically read from different storage addresses in the NAND flash memory, which can avoid read interference caused by frequent reading of the NAND flash memory, reduce the risk of data damage, and thus reduce the maintenance cost of the NAND flash memory.

[0056] Take the lighting system as an example, refer to Figure 2 and Figure 3 , Figure 2 An optional visualization diagram of a single effect file in a NAND flash memory before optimization provided in an embodiment of the present application, Figure 3 An optional visualization schematic diagram of a single effect file in an optimized NAND flash memory provided in an embodiment of the present application.

[0057] Before optimization, one effect file is used to store effect data sets corresponding to n effect types, and the n effect types are defined as X1, X2, X3, …, Xn respectively. After optimization, one effect file is used to store all target data sets, which are defined as X1[1], X1[2], …, X2[1], X2[2], …, Xn respectively. Among them, target data sets such as X1[1] and X1[2] whose leading numbers are all 1 all correspond to the same effect type, and other target data sets are similar.

[0058] The space occupied by the data set is represented by the area of ​​the rectangle. When the area of ​​the rectangle is larger, the space occupied by the data set is larger. Conversely, when the area of ​​the rectangle is smaller, the space occupied by the data set is smaller.

[0059] It can be seen that before optimization, the space occupied by the effect data sets corresponding to different effect types is different. In the loop playback mode, the effect data sets that occupy smaller space are read more frequently. After optimization, the total space occupied by the target data sets corresponding to various effect types is similar, which can significantly reduce the reading frequency of the target data sets with shorter single effect playback duration.

[0060] Taking the lighting system as an example again, refer to Figure 4 and Figure 5 , Figure 4 An optional visualization schematic diagram of a multi-effect file in a NAND flash memory before optimization provided in an embodiment of the present application, Figure 5 An optional visualization schematic diagram of a multi-effect file in an optimized NAND flash memory provided in an embodiment of the present application.

[0061] Among them, before optimization, effect data sets of n effect types are stored in corresponding effect files respectively. There are n effect files in total, which are defined as effect file 1, effect file 2, effect file 3, ..., effect file n respectively. The corresponding n effect types are defined as X1, X2, X3, ..., Xn respectively. After optimization, target effect data sets of the same effect type are stored in the same effect file, and target effect data sets of different types are stored in different effect files. For example, effect file 1 stores N1 target data sets, which are defined as X1[1], X1[2], ..., X1[N1] respectively, and other target data sets are similar.

[0062] The space occupied by the effect file is represented by the area of ​​the rectangle. When the area of ​​the rectangle is larger, the space occupied by the effect file is larger. Conversely, when the area of ​​the rectangle is smaller, the space occupied by the effect file is smaller.

[0063] It can be seen that before optimization, the space occupied by each effect file in the NAND flash memory is different. In the loop playback mode, the effect files that occupy a smaller space are read more frequently. After optimization, the total space occupied by each effect file is similar, which can significantly reduce the reading frequency of the target data set with a shorter single effect playback time.

[0064] For example, assume that the NAND flash memory stores target data sets of three effect types, the number of target data sets of the first effect type is 3, the number of target data sets of the second effect type is 2, and the number of target data sets of the third effect type is 1. The target data sets of the first effect type are respectively defined as X1[1], X1[2], and X1[3], the target data sets of the second effect type are respectively defined as X2[1] and X2[2], and the target data set of the third effect type is defined as X3[1].

[0065] On this basis, when the controller performs a single-loop read on the target data set of the first effect type, the target data set of the first effect type can be loop-read in a reading order, for example, it can be loop-read in a reading order of X1[1], X1[2], and X1[3].

[0066] When the controller performs cyclic reading of target data sets of three effect types, all target data sets corresponding to the same effect type can be cyclically read in a reading order. For example, the controller can perform cyclic reading in a reading order of X1[1], X2[1], X3[1], X1[2], X2[2], X3[1], X1[3], X2[1], X3[1], X1[1], X2[2], X3[1], X1[2], X2[1], X3[1], X1[3], X2[2] and X3[1].

[0067] In one possible implementation, before all target data sets are written to the NAND flash memory, the data writing method further includes: for any effect type, when the difference between the first occupied space and the occupied space of the corresponding effect data set is less than the occupied space of the effect data set, determining the corresponding effect data set as the target data set corresponding to the effect type.

[0068] Based on this, when the difference between the first occupied space and the occupied space of the effect data set corresponding to any effect type is smaller than the occupied space of the effect data set, it means that the occupied space of the effect data set is similar to the first occupied space, that is, the occupied space of the effect data set is larger, and there is no need to create a copy data set for the effect data set, so that the total occupied space corresponding to each effect type is similar to the first occupied space of the reference benchmark, which can improve the space utilization of the NAND flash memory.

[0069] In a possible implementation, the data writing method also includes: obtaining the total occupied space of all target data sets in the NAND flash memory to obtain a second occupied space; obtaining the available space of the NAND flash memory, determining the ratio between the available space and the second occupied space as a first ratio, and rounding down the first ratio to obtain a first target number; and controlling the NAND flash memory to copy all target data sets N-1 times, where N is the first target number.

[0070] The available space refers to the remaining space in the NAND flash memory. Usually, the available space does not include the space reserved by the NAND flash memory for storing important content. For example, the important content may include configuration files.

[0071] Based on this, in the loop playback mode, the more copies of the effect data set corresponding to the effect type, the lower the reading frequency of the effect data set, and the fewer times the NAND flash memory causes read interference. On this basis, the total occupied space of all target data sets is used as the second occupied space, and the available space of the NAND flash memory is obtained, and then the first target number is determined according to the first ratio between the available space and the second occupied space. The first target number is defined as N. Since the first target number is obtained by rounding down the first ratio, the first target number is less than or equal to the first ratio. After controlling the NAND flash memory to copy all target data sets N-1 times, it can ensure that the total occupied space of all target data sets will not exceed the available space. By copying all target data sets, it is equivalent to optimizing the storage method of the target data sets, reducing the reading frequency of the optimized target data sets, avoiding read interference caused by frequent reading of the NAND flash memory, reducing the risk of data damage, and thus reducing the maintenance cost of the NAND flash memory.

[0072] For example, assuming that the total space occupied by all target data sets is 100MB and the available space is 1030MB, at this time, writing all target data sets to the NAND flash memory will only occupy 9.7% of the available space. The first ratio obtained by calculation is 10.3, and the first target number obtained by rounding down is 10. The NAND flash memory is controlled to copy all target data sets 9 times. At this time, the total space occupied by the original target data set plus the copied target data set is 1000MB. At this time, writing all target data sets to the NAND flash memory will occupy 97% of the available space. It can be seen that the total space occupied by all target data sets will not exceed the available space.

[0073] In one possible implementation, several replica data sets are created for the effect data set. Specifically, the ratio of the first occupied space to the occupied space of the corresponding effect data set is determined as a second ratio, and the second ratio is rounded up to obtain a second target number; K-1 replica data sets are created for the effect data set, where K is the second target number.

[0074] Based on this, the second target quantity is determined according to the second ratio between the first occupied space and the occupied space of the effect data set, and the second target quantity is defined as K. Since the second target quantity is obtained by rounding up the second ratio, the second target quantity is greater than or equal to the second ratio, and the second target quantity is close to the second ratio. K-1 replica data sets are created for the effect data set, which can ensure that the total occupied space of the effect data set and all replica data sets is close to the first occupied space, which is equivalent to ensuring that the total occupied space of all target data sets corresponding to the effect type is close to the first occupied space.

[0075] For example, assuming that the space occupied by the effect data set corresponding to a certain effect type is 8.5MB, the first occupied space is 50MB, the second ratio is calculated to be 5.8, the first target number obtained by rounding up is 6, and 5 copy data sets are created for the effect data set. At this time, the total occupied space of all target data sets corresponding to the effect type is 51MB. It can be seen that the total occupied space of all target data sets corresponding to the effect type is similar to the first occupied space. In the loop playback mode, the reading frequency of the target data set with a shorter single effect playback duration can be significantly reduced.

[0076] In a possible implementation, the data writing method further includes: obtaining storage addresses of all target data sets in the NAND flash memory; constructing a configuration file based on the storage addresses and corresponding effect types; and writing the configuration file to the NAND flash memory.

[0077] Based on this, in addition to storing the target data set, the NAND flash memory also needs to store the corresponding configuration file, which is used to store the storage addresses of the target data sets of various effect types. Therefore, after the terminal writes the target data set to the NAND flash memory, it needs to obtain the storage addresses of all the target data sets in the NAND flash memory, and then establish a mapping relationship between each effect type and the storage address of the corresponding target data set based on the matching relationship between the target data set and the corresponding effect type, and then construct a configuration file containing the mapping relationship, and then write the configuration file to the NAND flash memory, so that the controller can read the configuration file in the NAND flash memory, and the controller can determine the storage address of the target data set corresponding to the target type based on the mapping relationship, thereby improving the accuracy of effect control.

[0078] It is worth noting that in NAND flash memory, when the target data set is stored in a single file, that is, all target data sets are located in the same effect file, the storage address of the target data set can be the offset of the target data set, and the offset is used to indicate the distance from the beginning of the effect file to each target data set. When the target data set is stored in multiple files, that is, all target data sets are located in different effect files, the storage address of the target data set can be the storage path of each effect file.

[0079] Specifically, in a NAND flash memory, the space occupied by a configuration file is usually small, and the configuration file is read less frequently. The configuration file can be stored in a redundant storage manner, which can improve the reliability and security of the configuration file.

[0080] Take the lighting system as an example, refer to Figure 5 and Figure 6 , Figure 6 An optional visualization schematic diagram of a multi-effect file in a NAND flash memory after secondary optimization provided in an embodiment of the present application.

[0081] Before optimization, target data sets of n effect types are stored in corresponding effect files respectively. There are n effect files in total, which are defined as effect file 1, effect file 2, effect file 3, ..., effect file n. Target effect data sets of the same effect type are stored in the same effect file, and target effect data sets of different types are stored in different effect files. For example, effect file 1 stores N1 target data sets, which are defined as X1[1], X1[2], ..., X1[N1] respectively. Other target data sets are similar.

[0082] After optimization, effect file 1 stores N1*K target data sets, effect file 2 stores N2*K target data sets, and other effect files are similar.

[0083] The space occupied by the effect file is represented by the area of ​​the rectangle. When the area of ​​the rectangle is larger, the space occupied by the effect file is larger. Conversely, when the area of ​​the rectangle is smaller, the space occupied by the effect file is smaller.

[0084] It can be seen that before the secondary optimization, the total space occupied by each effect file in the NAND flash memory is small; after the optimization, the total space occupied by each effect file in the NAND flash memory is large, thereby reducing the reading frequency of the optimized target data set.

[0085] For example, refer to Figure 7 , Figure 7 An optional flowchart of a configuration file reading process provided in an embodiment of the present application.

[0086] First, the NAND flash memory is controlled to copy the configuration file twice, and three identical configuration files in the NAND flash memory are defined as a first configuration file, a second configuration file, and a third configuration file, respectively.

[0087] Then, whenever the controller needs to read the configuration file in the NAND flash memory, the controller needs to determine whether the first configuration file in the NAND flash memory is consistent with the second configuration file;

[0088] If yes, the controller reads the first configuration file from the NAND flash memory;

[0089] If not, the controller needs to determine whether the first configuration file in the NAND flash memory is consistent with the third configuration file;

[0090] If yes, the controller reads the first configuration file from the NAND flash memory, and controls the first configuration file or the third configuration file in the NAND flash memory to overwrite the second configuration file;

[0091] If not, the controller needs to determine whether the second configuration file in the NAND flash memory is consistent with the third configuration file;

[0092] If yes, the controller reads the second configuration file from the NAND flash memory, and controls the second configuration file or the third configuration file in the NAND flash memory to overwrite the first configuration file;

[0093] If not, the controller generates prompt information for prompting to repair the data.

[0094] like Figure 8 As shown, Figure 8 An optional flow chart of a data reading method provided in an embodiment of the present application, the data reading method can be executed by a controller, and the data reading method includes but is not limited to the following steps S810 to S820:

[0095] Step S810, determining a target type among multiple effect types;

[0096] Step S820, cyclically reading all target data sets corresponding to the target type from the NAND flash memory.

[0097] The target data set is written into the NAND flash memory by the above-mentioned data writing method.

[0098] Based on this, it can be seen from the description of the specific embodiment of the above-mentioned data reading method that the effect data set storing the effect parameters is first obtained based on the data writing method, and then the occupied space of the effect data sets corresponding to each of the multiple effect types is determined, and then the first occupied space as a reference benchmark is determined; when the difference between the first occupied space and the occupied space of the effect data set corresponding to any effect type is greater than or equal to the occupied space of the effect data set, a number of copy data sets are created for the effect data set. Since the copy data set and the effect data set store the same effect parameters, the effect data set and the corresponding copy data set are both used as the target data sets corresponding to the effect type, and then all the target data sets are written to the NAND flash memory. Then the controller can read the target data set in the NAND flash memory based on the data reading method. Since different target data sets in the NAND flash memory are located at different storage addresses, when the controller needs to cyclically read the effect parameters of the target type, it can cyclically read all target data sets corresponding to the target type in the NAND flash memory, so as to realize cyclic reading of data from different storage addresses in the NAND flash memory, which can avoid read interference of the NAND flash memory due to frequent reading, reduce the risk of data damage, and thus reduce the maintenance cost of the NAND flash memory.

[0099] Specifically, the NAND flash memory also stores a configuration file that records multiple effect types. The controller is electrically connected to a display and an input module to determine a target type among multiple effect types. Specifically, the controller first reads the configuration file, and then controls the display to display information of multiple effect types. Relevant personnel can select one from the multiple effect types as the target type, and then the relevant personnel can input the target type information through the input module, so that the controller determines the target type among the multiple effect types.

[0100] Taking the lighting system as an example, the effect type is specifically the lighting effect type, and the effect parameter is specifically the lighting effect parameter. Assuming that the NAND flash memory can store configuration files that record three types of lighting effects, relevant personnel can select the first lighting effect type as the target type. Assuming that the number of all target data sets corresponding to the first lighting effect type is 10, when it is necessary to cyclically read the lighting effect parameters of the target type, the controller can cyclically read these 10 target data sets in a preset reading order.

[0101] In one possible implementation, all target data sets corresponding to the target type are cyclically read from the NAND flash memory. Specifically, all unmarked target data sets corresponding to the target type are cyclically read from the NAND flash memory. Whenever any target data set is read, the data status of the target data set currently being read is determined. When the data status is in an abnormal state, the target data set currently being read is marked.

[0102] Based on this, by setting an error marking strategy, when the target data set is in an abnormal state, the abnormal target data set is marked. By reading the unmarked target data set, it is possible to avoid reading the abnormal target data set and ensure the normal operation of the target system.

[0103] For example, assuming that the number of target data sets corresponding to the target type is three, and the three target data sets are defined as X1[1], X1[2], and X1[3] respectively, the controller can perform cyclic reading in the reading order of X1[1], X1[2], and X1[3]. When X1[1] is marked, the controller will skip X1[1] and read X1[2] during the cyclic reading.

[0104] In a possible implementation manner, the data reading method further includes: when all target data sets corresponding to the target type are marked, performing data recovery on the target data sets corresponding to the target type.

[0105] Specifically, backup data can be stored in the NAND flash memory, and the backup data includes all target data sets. The controller can control the NAND flash memory to restore the target data set based on the backup data, thereby realizing self-recovery of the NAND flash memory data and ensuring the normal operation of the target system.

[0106] In addition, refer to Fig. 9 The present application also provides a data writing device 900, comprising:

[0107] An acquisition module 910 is used to acquire effect data sets corresponding to each of the multiple effect types, wherein the effect data sets are used to store effect parameters, and the effect parameters corresponding to any two effect types are different;

[0108] A first processing module 920 is used to determine the occupied space of each effect data set, and determine a first occupied space based on the occupied space of each effect data set, wherein the first occupied space is greater than or equal to the occupied space of any one of the effect data sets;

[0109] A second processing module 930 is configured to, for any effect type, when the difference between the first occupied space and the occupied space of the corresponding effect data set is greater than or equal to the occupied space of the effect data set, create a plurality of replica data sets for the effect data set, and determine the effect data set and each replica data set as a target data set corresponding to the effect type, wherein the absolute value of the difference between the first occupied space and the total occupied space of all target data sets corresponding to the effect type is less than the occupied space of the effect data set;

[0110] The write module 940 is used to write all target data sets to the NAND flash memory, wherein the NAND flash memory is used to store the data read by the controller, and the controller is used to determine the target type among multiple effect types, and cyclically read all target data sets corresponding to the target type from the NAND flash memory.

[0111] It can be understood that the specific implementation of the data writing device 900 is substantially the same as the specific implementation of the above-mentioned data writing method, and will not be described in detail here.

[0112] In addition, refer to Fig.10 The present application also provides a data reading device 1000, comprising:

[0113] The third processing module 1010 is used to determine a target type among multiple effect types;

[0114] The reading module 1020 is used to cyclically read all target data sets corresponding to the target type from the NAND flash memory.

[0115] It can be understood that the specific implementation of the data reading device 1000 is substantially the same as the specific embodiment of the above-mentioned data reading method, and will not be described in detail herein.

[0116] In addition, refer to Fig.11 , Fig.11 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0117] The processor 1101 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0118] The memory 1102 can be implemented in the form of a read-only memory (ROM), a static NAND flash memory, a dynamic NAND flash memory, or a random access memory (RAM). The memory 1102 can store an operating system and other applications. When the technical solution provided in the embodiments of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1102, and the processor 1101 calls and executes the data writing method of the embodiment of the present application, or executes the data reading method of the embodiment of the present application;

[0119] Input / output interface 1103, used to implement information input and output;

[0120] The communication interface 1104 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);

[0121] A bus 1105 that transmits information between various components of the device (e.g., the processor 1101, the memory 1102, the input / output interface 1103, and the communication interface 1104);

[0122] The processor 1101 , the memory 1102 , the input / output interface 1103 and the communication interface 1104 are connected to each other in communication within the device via the bus 1105 .

[0123] An embodiment of the present application also provides a storage medium, which is a computer-readable storage medium used for computer-readable storage. The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned data writing method, or execute the data reading method of the embodiment of the present application.

[0124] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0125] The data writing method, data reading method, apparatus, device and storage medium provided by the embodiments of the present application, the data writing method obtains effect data sets corresponding to multiple effect types, wherein the effect data sets are used to store effect parameters, and the effect parameters corresponding to any two effect types are different; determines the occupied space of each effect data set, and determines a first occupied space based on the occupied space of each effect data set, wherein the first occupied space is greater than or equal to the occupied space of any one of the effect data sets; for any effect type, when the difference between the first occupied space and the occupied space of the corresponding effect data set is greater than or equal to the occupied space of the effect data set, creates several copy data sets for the effect data set, and determines the effect data set and each copy data set as the target data set corresponding to the effect type, wherein the absolute value of the difference between the first occupied space and the total occupied space of all target data sets corresponding to the effect type is less than the occupied space of the effect data set; writes all target data sets to a NAND flash memory, wherein the NAND flash memory is used to store data read by a controller, and the controller is used to determine the target type among multiple effect types, and cyclically read all target data sets corresponding to the target type from the NAND flash memory. Based on this, an effect data set storing effect parameters is obtained, and then the occupied spaces of the effect data sets corresponding to the multiple effect types are determined, thereby determining a first occupied space as a reference benchmark; when the difference between the first occupied space and the occupied space of the effect data set corresponding to any effect type is greater than or equal to the occupied space of the effect data set, a number of replica data sets are created for the effect data set. Since the replica data set and the effect data set store the same effect parameters, the effect data set and the corresponding replica data set are both used as target data sets corresponding to the effect type, and then all target data sets are written to the NAND flash memory. Since different target data sets in the NAND flash memory are located at different storage addresses, when all target data sets corresponding to the target type in the NAND flash memory are subsequently cyclically read, data is cyclically read from different storage addresses in the NAND flash memory, which can avoid read interference caused by frequent reading of the NAND flash memory, reduce the risk of data damage, and thus reduce the maintenance cost of the NAND flash memory.

[0126] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0127] It can be understood by those skilled in the art that Figures 1 to 6The technical solutions shown in the figure do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than those shown in the figure, or a combination of certain steps, or different steps.

[0128] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0129] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0130] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0131] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated 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 or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0132] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0133] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0134] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0135] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0136] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A data writing method, characterized in that: include: Obtaining effect data sets corresponding to each of the plurality of effect types, wherein the effect data sets are used to store effect parameters, the effect parameters corresponding to any two of the effect types are different, and the effect parameters are lighting effect control parameters, sound effect control parameters, or video playback control parameters; Determine the occupied space of each of the effect data sets, and determine a first occupied space based on the occupied space of each of the effect data sets, wherein the first occupied space is greater than or equal to the occupied space of any one of the effect data sets; For any of the effect types, when the difference between the first occupied space and the occupied space of the corresponding effect data set is greater than or equal to the occupied space of the effect data set, a plurality of replica data sets are created for the effect data set, and the effect data set and each of the replica data sets are determined as target data sets corresponding to the effect type, wherein the absolute value of the difference between the first occupied space and the total occupied space of all the target data sets corresponding to the effect type is less than the occupied space of the effect data set; All the target data sets are written to a NAND flash memory, wherein the NAND flash memory is used to store data read by a controller, the controller is used to determine a target type among a plurality of effect types, and cyclically read all the target data sets corresponding to the target type from the NAND flash memory.

2. The data writing method according to claim 1, characterized in that: Before writing all the target data sets into the NAND flash memory, the data writing method further includes: For any of the effect types, when the difference between the first occupied space and the occupied space of the corresponding effect data set is smaller than the occupied space of the effect data set, the corresponding effect data set is determined as the target data set corresponding to the effect type.

3. The data writing method according to claim 2, characterized in that: The data writing method further includes: Acquire the total occupied space of all the target data sets in the NAND flash memory to obtain a second occupied space; Obtaining available space of the NAND flash memory, determining a ratio between the available space and the second occupied space as a first ratio, and rounding down the first ratio to obtain a first target quantity; Control the NAND flash memory to copy all the target data sets N-1 times, where N is the first target number.

4. The data writing method according to claim 1, characterized in that: The step of creating a plurality of replica data sets for the effect data set includes: Determine a ratio between the first occupied space and the occupied space of the corresponding effect data set as a second ratio, and round up the second ratio to obtain a second target number; Create K-1 replica data sets for the effect data set, where K is the second target number.

5. The data writing method according to claim 1, characterized in that: The data writing method further includes: Obtaining storage addresses of all the target data sets in the NAND flash memory; Building a configuration file based on the storage address and the corresponding effect type; The configuration file is written to the NAND flash memory.

6. A data reading method, characterized in that: include: Identify target types among multiple effect types; All target data sets corresponding to the target type are cyclically read from a NAND flash memory, wherein the target data sets are written into the NAND flash memory by the data writing method according to any one of claims 1 to 5.

7. The data reading method according to claim 6, characterized in that: The step of cyclically reading all target data sets corresponding to the target type from the NAND flash memory includes: cyclically reading all unlabeled target data sets corresponding to the target type from the NAND flash memory; Whenever any of the target data sets is read, the data state of the target data set currently being read is determined, and when the data state is in an abnormal state, the target data set currently being read is marked.

8. A data writing device, characterized in that: include: An acquisition module, used for acquiring effect data sets corresponding to each of the plurality of effect types, wherein the effect data sets are used for storing effect parameters, the effect parameters corresponding to any two effect types are different, and the effect parameters are lighting effect control parameters, sound effect control parameters or video playback control parameters; A first processing module, configured to determine the occupied space of each of the effect data sets, and determine a first occupied space based on the occupied space of each of the effect data sets, wherein the first occupied space is greater than or equal to the occupied space of any one of the effect data sets; a second processing module, configured to, for any of the effect types, create a plurality of replica data sets for the effect data set when the difference between the first occupied space and the occupied space of the corresponding effect data set is greater than or equal to the occupied space of the effect data set, and determine the effect data set and each of the replica data sets as a target data set corresponding to the effect type, wherein an absolute value of the difference between the first occupied space and the total occupied space of all the target data sets corresponding to the effect type is less than the occupied space of the effect data set; A write module is used to write all the target data sets to a NAND flash memory, wherein the NAND flash memory is used to store data read by a controller, and the controller is used to determine a target type among a plurality of effect types, and to cyclically read all the target data sets corresponding to the target type from the NAND flash memory.

9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the data writing method described in any one of claims 1 to 5, or implements the data reading method described in any one of claims 6 to 7 when executing the computer program.

10. A storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, it implements the data writing method described in any one of claims 1 to 5, or implements the data reading method described in any one of claims 6 to 7.

Citation Information

Patent Citations

  • Data writing method, storage device and storage medium

    CN114356221A

  • Data writing method, storage system and computer readable storage medium

    CN115202572A