Flash memory chip storage configuration method and flash memory chip storage configuration device
By classifying and indexing the data of the flash memory chip, generating target sequence codes, determining data partitioning and storage configuration parameters, the problem of single storage method of flash memory chips is solved, efficient storage and extraction of data is achieved, and storage intelligence is improved.
Patent Information
- Application Number
- CN202410623522.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-05-20
AI Technical Summary
The storage method of flash memory chips is relatively single, lacking intelligence, making it difficult to improve storage intelligence.
By obtaining the data to be stored from external devices, performing classification and indexing processing, generating target sequence codes, determining data partitioning and storage configuration parameters, realizing decentralized storage and extraction of data.
It improves the storage intelligence of flash memory chips, ensures data security and extraction efficiency, and realizes efficient storage and extraction of data through index lists and sequence codes.
Smart Images

Figure CN118466840B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of storage technology, and in particular to a flash memory chip storage configuration method and a flash memory chip storage configuration device. Background Art
[0002] In practical applications, flash memory chips are also called flash drives. They are a type of mobile storage product that can be used to store data files in any format. Because they are easy to carry, they are also known as personal "data mobile centers." Flash memory chips use flash storage media and Universal Serial Bus (USB) interfaces. At present, the storage method of flash memory chips is relatively simple and not intelligent enough. Therefore, how to improve the storage intelligence of flash memory chips needs to be solved urgently. Summary of the invention
[0003] The embodiments of the present application provide a flash memory chip storage configuration method and a flash memory chip storage configuration device, which can improve the storage intelligence of the flash memory chip.
[0004] In a first aspect, an embodiment of the present application provides a flash memory chip storage configuration method, the method comprising:
[0005] Acquire data to be stored from an external device;
[0006] Classifying the data to be stored to obtain multiple types of data sets, each type of data set corresponds to a data type, each data set includes at least one data and an index set, each data corresponds to an index; the index is used to represent the data storage location;
[0007] Generate an index list based on the index set corresponding to each type of data set of the multiple types of data sets, and process the index list into a target sequence code;
[0008] Determine a data partition in the flash memory chip corresponding to each of the multiple types of data sets to obtain multiple data partitions;
[0009] Acquire the attribute information of the multiple types of data sets to obtain multiple attribute information;
[0010] Determine storage configuration parameters corresponding to the plurality of attribute information to obtain a plurality of storage configuration parameters;
[0011] storing the multiple types of data sets into corresponding data partitions among the multiple data partitions according to the multiple storage configuration parameters;
[0012] The target sequence code is sent to a user, and the target sequence code is used to extract the data to be stored from the flash memory chip.
[0013] In a second aspect, an embodiment of the present application provides a flash memory chip storage configuration device, the device comprising: an acquisition unit, a classification unit, a generation unit, a determination unit, a storage unit and a sending unit, wherein:
[0014] The acquisition unit is used to acquire the data to be stored from the external device;
[0015] The classification unit is used to classify the data to be stored to obtain multiple types of data sets, each type of data set corresponds to a data type, each data set includes at least one data and an index set, each data corresponds to an index; the index is used to represent the data storage location;
[0016] The generating unit is used to generate an index list based on the index set corresponding to each type of data set of the multiple types of data sets, and process the index list into a target sequence code;
[0017] The determining unit is used to determine the data partition corresponding to each type of data set in the multiple types of data sets in the flash memory chip to obtain multiple data partitions;
[0018] The acquisition unit is further used to acquire the attribute information of the multiple types of data sets to obtain multiple attribute information;
[0019] The determining unit is further configured to determine storage configuration parameters corresponding to the plurality of attribute information to obtain a plurality of storage configuration parameters;
[0020] The storage unit is used to store the multiple types of data sets into corresponding data partitions among the multiple data partitions according to the multiple storage configuration parameters;
[0021] The sending unit is used to send the target sequence code to a user, and the target sequence code is used to extract the data to be stored from the flash memory chip.
[0022] In a third aspect, an embodiment of the present application provides a flash memory chip, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the first aspect of the embodiment of the present application.
[0023] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in the first aspect of the embodiment of the present application.
[0024] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiment of the present application. The computer program product may be a software installation package.
[0025] The implementation of the embodiments of the present application has the following beneficial effects:
[0026] It can be seen that the flash memory chip storage configuration method and the flash memory chip storage configuration device described in the embodiments of the present application obtain data to be stored from an external device, classify the data to be stored, and obtain multiple types of data sets, each type of data set corresponds to a data type, each data set includes at least one data and an index set, and each data corresponds to an index; the index is used to characterize the data storage location, and an index list is generated based on the index set corresponding to each type of data set in the multiple types of data sets, and the index list is processed into a target sequence code, and the data partition corresponding to each type of data set in the multiple types of data sets in the flash memory chip is determined to obtain multiple data partitions, and attribute information of the multiple types of data sets is obtained to obtain multiple attribute information, and the multiple attribute information is determined. Corresponding storage configuration parameters are obtained, and multiple storage configuration parameters are obtained. According to the multiple storage configuration parameters, multiple types of data sets are stored in corresponding data partitions in multiple data partitions, and the target sequence code is sent to the user. The target sequence code is used to extract the data to be stored from the flash memory chip. On the one hand, the data to be stored can be divided into multiple categories, that is, the data is shuffled, and the data can be connected in series using the index. On the other hand, the corresponding partitions can be configured based on the number of categories, and the configuration performance of each partition can be configured based on the attribute depth of the data set. Not only can the security of data storage be guaranteed, but the sequence code can also be used to extract the shuffled data to ensure data extraction efficiency, thereby improving the storage intelligence of the flash memory chip. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0028] Figure 1 It is a flowchart of a flash memory chip storage configuration method provided in an embodiment of the present application;
[0029] Figure 2 It is a flowchart of another flash memory chip storage configuration method provided in an embodiment of the present application;
[0030] Figure 3 It is a structural schematic diagram of a flash memory chip provided in an embodiment of the present application;
[0031] Figure 4 It is a block diagram of the functional units of a flash memory chip storage configuration device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0033] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0034] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0035] The embodiments of the present application are described in detail below.
[0036] See also Figure 1 , Figure 1 1 is a flow chart of a flash memory chip storage configuration method provided in an embodiment of the present application. As shown in the figure, the flash memory chip storage configuration method includes:
[0037] 101. Obtain data to be stored from an external device.
[0038] In the embodiments of the present application, applied to the flash memory chip, the external device refers to any device other than the flash memory chip, and the external device may include at least one of the following: a mobile phone, a computer, a tablet computer, a server, a reading machine, a learning machine, a driving recorder, etc., which are not limited here.
[0039] The data to be stored may include at least one of the following: text, video, audio, application, compressed package, image, etc., which are not limited here.
[0040] In a specific implementation, the flash memory chip may establish a communication connection with an external device, and the communication connection may be a wired communication connection and / or a wireless communication connection.
[0041] 102. Classify the data to be stored to obtain multiple types of data sets, each type of data set corresponds to a data type, each data set includes at least one data and an index set, and each data corresponds to an index; the index is used to represent the data storage location.
[0042] The data type may be determined based on at least one of the following information: data format, data size, data source, data importance, etc., which are not limited here. For example, the data type may be determined based on the data format, or the data type may be determined based on the data size, or the data type may be determined based on the data source, or the data type may be determined based on the data importance, etc., which are not limited here. For example, the data type may include at least one of the following: text type, image type, video type, etc., which are not limited here.
[0043] In an embodiment of the present application, the data to be stored can be classified to obtain multiple types of data sets, each type of data set corresponds to a data type, each data set includes at least one data and an index set, each data corresponds to an index, and the index is used to characterize the data storage location. In this way, the data to be stored can be stored in a dispersed manner based on the index, and the dispersedly stored data can also be restored based on the index.
[0044] 103. Generate an index list based on the index set corresponding to each type of data set of the multiple types of data sets, and process the index list into a target sequence code.
[0045] In the embodiment of the present application, since each type of data set corresponds to an index set, they can be connected in series to obtain an index list, and then the index list can be placed in the target sequence code.
[0046] Optionally, the above step 103, generating an index list based on the index set of the multiple types of data sets, may include the following steps:
[0047] A31, concatenating the index set of each type of data set in the multiple types of data sets to obtain multiple index character strings;
[0048] A32. Concatenate the multiple index character strings together to obtain the index list.
[0049] In an embodiment of the present application, the index set of each type of data set in the multiple types of data sets can be connected in series to obtain multiple index strings, that is, the index set of each data set can be connected in series to form an index string corresponding to each data set, and then the multiple index strings are spliced together to obtain an index list. The index list is convenient for users to search by map and realize the restoration operation of the data to be stored.
[0050] Optionally, the above step 103, processing the index list into a target sequence code, may include the following steps:
[0051] B31, extracting keywords of the data to be stored to obtain target keywords;
[0052] B32, determining the target encrypted information corresponding to the target keyword;
[0053] B33. Encrypt the index list according to the target encryption information to obtain the target sequence code.
[0054] In an embodiment of the present application, the target encryption information may include a target encryption algorithm and target algorithm control parameters of the target encryption algorithm. The target algorithm control parameters are used to control the encryption complexity, encryption timeliness, encryption duration, etc. of the target encryption algorithm. No limitation is made here. Encryption timeliness refers to encryption within a specified time period. The specified time period can be pre-set or system default.
[0055] In a specific implementation, the target keyword may include multiple keywords, determine the security level corresponding to each keyword in the multiple keywords, obtain multiple security levels, determine the highest security level among the multiple security levels, and then determine the target encryption algorithm corresponding to the highest security level based on the mapping relationship between the preset security level and the encryption algorithm, obtain the reference algorithm control parameter corresponding to the target encryption algorithm, obtain the security evaluation value of each keyword in the multiple keywords, obtain multiple security evaluation values, determine the target mean square error corresponding to the multiple security evaluation values, and pre-store the mapping relationship between the preset mean square error and the adjustment parameter, determine the target adjustment parameter corresponding to the target mean square error based on the mapping relationship, and then adjust the reference algorithm control parameter according to the target adjustment parameter to obtain the target algorithm control parameter. The adjustment parameter may have a value range of -0.1 to 0.1, and the target adjustment parameter adjusts at least one algorithm control parameter in the reference algorithm control parameter.
[0056] Among them, the keywords reflect the security requirements of the data to be stored to a certain extent, and the mean square error reflects the fluctuations in the encryption needs of the data to be stored. Based on this, the actual encryption needs can be accurately adapted. Not only can the corresponding encryption algorithm be selected based on the attributes of the data itself, but also the corresponding algorithm control parameters can be dynamically determined based on its demand fluctuations, making the encryption more personalized and deeply in line with the attributes of the data to be stored, which helps to ensure security and intelligent data management.
[0057] The keyword may include at least one of the following: a character string, a pattern, a Chinese character, a code, etc., which are not limited here.
[0058] In an embodiment of the present application, keywords of the data to be stored can be extracted to obtain target keywords. The mapping relationship between preset keywords and encryption information can also be pre-stored. Then, the target encryption information corresponding to the target keyword can be determined based on the mapping relationship, and the index list can be encrypted according to the target encryption information to obtain the target sequence code.
[0059] 104. Determine a data partition corresponding to each type of data set in the multiple types of data sets in the flash memory chip to obtain multiple data partitions.
[0060] In an embodiment of the present application, the flash memory chip can be partitioned. Specifically, the data partition corresponding to each of the multiple types of data sets in the flash memory chip can be determined to obtain multiple data partitions. In this way, each of the multiple types of data sets can be divided into a data partition. In this way, the data can be stored in a dispersed manner, which helps to improve data security.
[0061] Among them, different data partitions have different sizes, and different data partitions have different data processing methods within the data partitions. The data processing method may include at least one of the following: compression, encryption, hiding, no processing, etc., which is not limited here.
[0062] 105. Obtain attribute information of the multiple types of data sets to obtain multiple attribute information.
[0063] In the embodiment of the present application, the attribute information may include at least one of the following: data type, data size, data importance, etc., which are not limited here.
[0064] In the specific implementation, the attribute information of multiple types of data sets can be obtained, and multiple attribute information can be obtained. Then, the corresponding configuration parameters can be configured based on different attribute information, which not only helps data security, but also improves data storage efficiency.
[0065] 106. Determine storage configuration parameters corresponding to the multiple attribute information to obtain multiple storage configuration parameters.
[0066] In the embodiment of the present application, the storage configuration parameters may include at least one of the following: whether to encrypt, whether to compress, the data transmission channel, the data transmission rate, whether to hide, etc., which are not limited here.
[0067] In a specific implementation, the mapping relationship between preset attribute information and storage configuration parameters can be pre-stored, and then the storage configuration parameters corresponding to each attribute information in multiple attribute information can be determined based on the mapping relationship to obtain multiple storage configuration parameters. In this way, storage configuration parameters can be configured differentially for different attributes, which helps to ensure data security and improve data storage efficiency.
[0068] 107. Store the multiple types of data sets into corresponding data partitions among the multiple data partitions according to the multiple storage configuration parameters.
[0069] In an embodiment of the present application, multiple types of data sets can be stored in corresponding data partitions in multiple data partitions according to multiple storage configuration parameters. In this way, storage configuration parameters can be differentially configured for different attributes, and data sets can be stored in corresponding data partitions based on the storage configuration parameters, which helps to ensure data security and improve data storage efficiency.
[0070] 108. Send the target sequence code to a user, where the target sequence code is used to extract the data to be stored from the flash memory chip.
[0071] In specific implementation, part or all of the target sequence code can be sent to the user. The target sequence code is equivalent to a "data extraction certificate". The target sequence code is used to extract the data to be stored from the flash memory chip. In this way, not only can the data be stored in a dispersed manner, but it can also be restored in its original order to improve data security. Part of the target sequence code can extract part of the content of the data to be stored, and the entire target sequence code can extract the entire content of the data to be stored.
[0072] In an embodiment of the present application, a target sequence code can be sent to a user. The target sequence code is used to extract data to be stored from a flash memory chip. The sequence code is equivalent to a "data extraction credential". Through the sequence code, the corresponding data index can be identified, and then the data can be integrated according to the original data order of the data to be stored to restore the corresponding data to be stored. In this way, on the one hand, the data to be stored can be divided into multiple categories, that is, the data is shuffled, and the data can be connected in series using indexes. On the other hand, the corresponding partitions can be configured based on the number of categories, and the configuration performance of each partition can be configured based on the attribute depth of the data set. Not only can the security of data storage be guaranteed, but the sequence code can also be used to extract the shuffled data to ensure data extraction efficiency, thereby improving the storage intelligence of the flash memory chip.
[0073] Optionally, the following steps may also be included:
[0074] A1. Associating the target keyword with the data to be stored to obtain target association information, and sending the target association information to a designated mailbox of the user;
[0075] A2. When the user needs to extract the data to be stored, the target association information is obtained from the designated mailbox, and the target decryption information of the data to be stored is obtained according to the target keyword in the target association information;
[0076] A3. Decrypt the target sequence code using the target decryption information to obtain the index list;
[0077] A4. Obtain the data to be stored from the flash memory chip using the index list.
[0078] The designated mailbox may be preset or set as a system default.
[0079] The target decryption information corresponds to the target encryption information and is used to implement decryption.
[0080] The designated mailbox may be preset or set by system default, and the designated mailbox may include one or more mailboxes.
[0081] In an embodiment of the present application, a target keyword can be associated with the data to be stored to obtain target association information, and the target association information can be sent to a designated mailbox of the user. When the user needs to extract the data to be stored, the target association information is obtained from the designated mailbox, and the target decryption information of the data to be stored is obtained according to the target keyword in the target association information. The target sequence code is decrypted by the target decryption information to obtain an index list, and then the data to be stored is obtained from the flash memory chip using the index list. In this way, the keyword can be associated with the data to be stored and stored in the designated mailbox to ensure the security of the decrypted information. In addition, when decryption is required, the association information is obtained from the designated mailbox to obtain the corresponding decryption information through the association information, and then the sequence code is parsed through the decrypted information to obtain the index list, and the index list is used to restore the data to be stored, which not only ensures the distributed storage and security of data, but also ensures the index security and the high efficiency of restoring the data to be stored.
[0082] Optionally, the following steps may also be included:
[0083] B1. Obtaining the data size and data type quantity of the data to be stored;
[0084] B2. When the data size is greater than a first threshold and the number of data types is greater than a second threshold, executing the step of classifying the data to be stored to obtain multiple types of data sets.
[0085] In the embodiment of the present application, the first threshold and the second threshold can be preset or set by system default.
[0086] Specifically, the data size and the number of data types of the data to be stored can be obtained. When the data size is greater than a first threshold and the number of data types is greater than a second threshold, it means that the data volume is large and the data types are more diverse. Then, the step of classifying the data to be stored to obtain multiple types of data sets can be executed. In this way, on the one hand, the data to be stored can be divided into multiple categories, that is, the data is shuffled, and the data can be connected in series using indexes. On the other hand, corresponding partitions can be configured based on the number of categories, and the configuration performance of each partition can be configured based on the attribute depth of the data set. Not only can the security of data storage be guaranteed, but also the serial code can be used to extract the shuffled data to ensure data extraction efficiency, thereby improving the storage intelligence of the flash memory chip.
[0087] On the contrary, when the data size is less than or equal to the first threshold, or the number of data set types is less than or equal to the second threshold, it means that the amount of data is small, or the diversity of data types is small, and there is no need to disperse the storage processing of the data to be stored. For example, the data to be stored can be directly stored in the flash memory chip.
[0088] It can be seen that the flash memory chip storage configuration method described in the embodiment of the present application obtains data to be stored from an external device, classifies the data to be stored, and obtains multiple types of data sets, each type of data set corresponds to a data type, each data set includes at least one data and an index set, and each data corresponds to an index; the index is used to characterize the data storage location, and an index list is generated based on the index set corresponding to each type of data set in the multiple types of data sets, and the index list is processed into a target sequence code, and the data partition corresponding to each type of data set in the multiple types of data sets in the flash memory chip is determined to obtain multiple data partitions, and attribute information of the multiple types of data sets is obtained to obtain multiple attribute information, and the storage corresponding to the multiple attribute information is determined. Configuration parameters are obtained, multiple storage configuration parameters are obtained, multiple types of data sets are stored in corresponding data partitions in multiple data partitions according to the multiple storage configuration parameters, and the target sequence code is sent to the user. The target sequence code is used to extract the data to be stored from the flash memory chip. On the one hand, the data to be stored can be divided into multiple categories, that is, the data is shuffled, and the data can be connected in series using the index. On the other hand, the corresponding partitions can be configured based on the number of categories, and the configuration performance of each partition can be configured based on the attribute depth of the data set. Not only can the security of data storage be guaranteed, but the sequence code can also be used to extract the shuffled data to ensure data extraction efficiency, thereby improving the storage intelligence of the flash memory chip.
[0089] See also Figure 2 , Figure 2 1 is a flow chart of a flash memory chip storage configuration method provided in an embodiment of the present application. As shown in the figure, the flash memory chip storage configuration method includes:
[0090] 201. Obtain data to be stored from an external device.
[0091] 202. Obtain the data size and data type quantity of the data to be stored.
[0092] 203. When the data size is greater than a first threshold and the number of data types is greater than a second threshold, the data to be stored is classified to obtain multiple types of data sets, each type of data set corresponds to a data type, each data set includes at least one data and an index set, and each data corresponds to an index; the index is used to characterize the data storage location.
[0093] 204. Generate an index list based on the index set corresponding to each type of data set of the multiple types of data sets, and process the index list into a target sequence code.
[0094] 205. Determine a data partition corresponding to each type of data set in the multiple types of data sets in the flash memory chip to obtain multiple data partitions.
[0095] 206. Obtain attribute information of the multiple types of data sets to obtain multiple attribute information.
[0096] 207. Determine storage configuration parameters corresponding to the multiple attribute information to obtain multiple storage configuration parameters.
[0097] 208. Store the multiple types of data sets into corresponding data partitions among the multiple data partitions according to the multiple storage configuration parameters.
[0098] 209. Send the target sequence code to a user, where the target sequence code is used to extract the data to be stored from the flash memory chip.
[0099] The specific description of the above steps 201 to 209 can refer to the above Figure 1 The corresponding steps of the described flash memory chip storage configuration method are not repeated here.
[0100] It can be seen that the flash memory chip storage configuration method described in the embodiment of the present application obtains data to be stored from an external device, obtains the data size and the number of data types of the data to be stored, and when the data size is greater than a first threshold and the number of data types is greater than a second threshold, classifies the data to be stored to obtain multiple types of data sets, each type of data set corresponds to a data type, each data set includes at least one data and an index set, and each data corresponds to an index; the index is used to characterize the data storage location, an index list is generated based on the index set corresponding to each type of data set in the multiple types of data sets, the index list is processed into a target sequence code, the data partition corresponding to each type of data set in the multiple types of data sets in the flash memory chip is determined, multiple data partitions are obtained, and attribute information of the multiple types of data sets is obtained. A plurality of attribute information is obtained, storage configuration parameters corresponding to the plurality of attribute information are determined, a plurality of storage configuration parameters are obtained, and the plurality of types of data sets are stored in corresponding data partitions in the plurality of data partitions according to the plurality of storage configuration parameters, and a target sequence code is sent to a user. The target sequence code is used to extract the data to be stored from the flash memory chip. On the one hand, the data to be stored can be divided into a plurality of categories, that is, the data is shuffled, and the data can be connected in series using an index. On the other hand, the corresponding partitions can be configured based on the number of categories, and the configuration performance of each partition can be configured based on the attribute depth of the data set. This can not only ensure the security of data storage, but also use the sequence code to extract the shuffled data, and ensure the data extraction efficiency, thereby improving the storage intelligence of the flash memory chip.
[0101] In accordance with the above embodiment, please refer to Figure 3 , Figure 3 : is a structural schematic diagram of a flash memory chip provided in an embodiment of the present application. As shown in the figure, the flash memory chip includes a processor, a memory, a communication interface, and one or more programs. The one or more programs are stored in the memory and are configured to be executed by the processor. In the embodiment of the present application, the program includes instructions for executing the following steps:
[0102] Acquire data to be stored from an external device;
[0103] Classifying the data to be stored to obtain multiple types of data sets, each type of data set corresponds to a data type, each data set includes at least one data and an index set, each data corresponds to an index; the index is used to represent the data storage location;
[0104] Generate an index list based on the index set corresponding to each type of data set of the multiple types of data sets, and process the index list into a target sequence code;
[0105] Determine a data partition in the flash memory chip corresponding to each of the multiple types of data sets to obtain multiple data partitions;
[0106] Acquire the attribute information of the multiple types of data sets to obtain multiple attribute information;
[0107] Determine storage configuration parameters corresponding to the plurality of attribute information to obtain a plurality of storage configuration parameters;
[0108] storing the multiple types of data sets into corresponding data partitions among the multiple data partitions according to the multiple storage configuration parameters;
[0109] The target sequence code is sent to a user, and the target sequence code is used to extract the data to be stored from the flash memory chip.
[0110] Optionally, in the aspect of generating an index list based on the index set of the multi-class data set, the program includes instructions for performing the following steps:
[0111] Connecting the index set of each type of data set in series to obtain multiple index character strings;
[0112] The multiple index character strings are concatenated together to obtain the index list.
[0113] Optionally, in the aspect of processing the index list into a target sequence code, the program includes instructions for performing the following steps:
[0114] Extracting keywords of the data to be stored to obtain target keywords;
[0115] Determining target encrypted information corresponding to the target keyword;
[0116] The index list is encrypted according to the target encryption information to obtain the target sequence code.
[0117] Optionally, the program further includes instructions for executing the following steps:
[0118] Associating the target keyword with the data to be stored to obtain target association information, and sending the target association information to a designated mailbox of the user;
[0119] When the user needs to extract the data to be stored, the target association information is obtained from the designated mailbox, and the target decryption information of the data to be stored is obtained according to the target keyword in the target association information;
[0120] Decrypting the target sequence code by using the target decryption information to obtain the index list;
[0121] The data to be stored is acquired from the flash memory chip using the index list.
[0122] Optionally, the program further includes instructions for executing the following steps:
[0123] Obtaining the data size and data type quantity of the data to be stored;
[0124] When the data size is greater than a first threshold and the number of data types is greater than a second threshold, the step of classifying the data to be stored to obtain multiple types of data sets is performed.
[0125] It can be seen that the flash memory chip described in the embodiment of the present application obtains data to be stored from an external device, classifies the data to be stored, and obtains multiple types of data sets, each type of data set corresponds to a data type, each data set includes at least one data and an index set, and each data corresponds to an index; the index is used to characterize the data storage location, and an index list is generated based on the index set corresponding to each type of data set in the multiple types of data sets, the index list is processed into a target sequence code, the data partition corresponding to each type of data set in the multiple types of data sets in the flash memory chip is determined, and multiple data partitions are obtained, attribute information of the multiple types of data sets is obtained, and multiple attribute information is determined. Storage configuration parameters corresponding to the multiple attribute information are determined. number, obtain multiple storage configuration parameters, store multiple types of data sets into corresponding data partitions in multiple data partitions according to the multiple storage configuration parameters, send the target sequence code to the user, and the target sequence code is used to extract the data to be stored from the flash memory chip. On the one hand, the data to be stored can be divided into multiple categories, that is, the data is shuffled, and the data can be connected in series using the index. On the other hand, the corresponding partitions can be configured based on the number of categories, and the configuration performance of each partition can be configured based on the attribute depth of the data set. Not only can the security of data storage be guaranteed, but the sequence code can also be used to extract the shuffled data to ensure data extraction efficiency, thereby improving the storage intelligence of the flash memory chip.
[0126] Figure 4 4 is a functional unit block diagram of a flash memory chip storage configuration device 400 involved in an embodiment of the present application. The flash memory chip storage configuration device 400 includes: an acquisition unit 401, a classification unit 402, a generation unit 403, a determination unit 404, a storage unit 405 and a sending unit 406, wherein:
[0127] The acquisition unit 401 is used to acquire the data to be stored from an external device;
[0128] The classification unit 402 is used to classify the data to be stored to obtain multiple types of data sets, each type of data set corresponds to a data type, each data set includes at least one data and an index set, each data corresponds to an index; the index is used to represent the data storage location;
[0129] The generating unit 403 is used to generate an index list based on the index set corresponding to each type of data set of the multiple types of data sets, and process the index list into a target sequence code;
[0130] The determining unit 404 is used to determine the data partition corresponding to each type of data set in the multiple types of data sets in the flash memory chip to obtain multiple data partitions;
[0131] The acquisition unit 401 is further used to acquire the attribute information of the multi-class data set to obtain multiple attribute information;
[0132] The determining unit 404 is further configured to determine storage configuration parameters corresponding to the plurality of attribute information to obtain a plurality of storage configuration parameters;
[0133] The storage unit 405 is used to store the multiple types of data sets into corresponding data partitions among the multiple data partitions according to the multiple storage configuration parameters;
[0134] The sending unit 406 is used to send the target sequence code to a user, where the target sequence code is used to extract the data to be stored from the flash memory chip.
[0135] Optionally, in the aspect of generating an index list based on the index set of the multi-class data set, the generating unit 403 is specifically used to:
[0136] Connecting the index set of each type of data set in series to obtain multiple index character strings;
[0137] The multiple index character strings are concatenated together to obtain the index list.
[0138] Optionally, in processing the index list into a target sequence code, the generating unit 403 is specifically configured to:
[0139] Extracting keywords of the data to be stored to obtain target keywords;
[0140] Determining target encrypted information corresponding to the target keyword;
[0141] The index list is encrypted according to the target encryption information to obtain the target sequence code.
[0142] Optionally, the flash memory chip storage configuration device 400 is further specifically used for:
[0143] Associating the target keyword with the data to be stored to obtain target association information, and sending the target association information to a designated mailbox of the user;
[0144] When the user needs to extract the data to be stored, the target association information is obtained from the designated mailbox, and the target decryption information of the data to be stored is obtained according to the target keyword in the target association information;
[0145] Decrypting the target sequence code by using the target decryption information to obtain the index list;
[0146] The data to be stored is acquired from the flash memory chip using the index list.
[0147] Optionally, the flash memory chip storage configuration device 400 is further specifically used for:
[0148] Obtaining the data size and data type quantity of the data to be stored;
[0149] When the data size is greater than a first threshold and the number of data types is greater than a second threshold, the step of classifying the data to be stored to obtain multiple types of data sets is performed.
[0150] It can be seen that the flash memory chip storage configuration device described in the embodiment of the present application obtains data to be stored from an external device, classifies the data to be stored, and obtains multiple types of data sets, each type of data set corresponds to a data type, each data set includes at least one data and an index set, and each data corresponds to an index; the index is used to characterize the data storage location, and an index list is generated based on the index set corresponding to each type of data set in the multiple types of data sets, and the index list is processed into a target sequence code, and the data partition corresponding to each type of data set in the multiple types of data sets in the flash memory chip is determined to obtain multiple data partitions, and attribute information of the multiple types of data sets is obtained to obtain multiple attribute information, and the storage corresponding to the multiple attribute information is determined. Configuration parameters are obtained, multiple storage configuration parameters are obtained, multiple types of data sets are stored in corresponding data partitions in multiple data partitions according to the multiple storage configuration parameters, and the target sequence code is sent to the user. The target sequence code is used to extract the data to be stored from the flash memory chip. On the one hand, the data to be stored can be divided into multiple categories, that is, the data is shuffled, and the data can be connected in series using the index. On the other hand, the corresponding partitions can be configured based on the number of categories, and the configuration performance of each partition can be configured based on the attribute depth of the data set. Not only can the security of data storage be guaranteed, but the sequence code can also be used to extract the shuffled data to ensure data extraction efficiency, thereby improving the storage intelligence of the flash memory chip.
[0151] It can be understood that the functions of each program module of the flash memory chip storage configuration device of this embodiment can be specifically implemented according to the method in the above method embodiment, and its specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
[0152] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any method recorded in the above method embodiments.
[0153] The present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps of any method described in the above method embodiment. The computer program product may be a software installation package.
[0154] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0155] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0156] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above-mentioned units, which 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, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0157] 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.
[0158] 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.
[0159] If the above-mentioned 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 memory. Based on this understanding, the technical solution of the present application is essentially 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 memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or CD-ROM and other media that can store program codes.
[0160] A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory (English: Random Access Memory, abbreviated as: RAM), a magnetic disk or an optical disk, etc.
[0161] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A flash memory chip storage configuration method, characterized in that: The method comprises: Acquire data to be stored from an external device; Classifying the data to be stored to obtain multiple types of data sets, each type of data set corresponds to a data type, each data set includes at least one data and an index set, each data corresponds to an index; the index is used to represent the data storage location; Generate an index list based on the index set corresponding to each type of data set of the multiple types of data sets, and process the index list into a target sequence code; Determine a data partition in the flash memory chip corresponding to each of the multiple types of data sets to obtain multiple data partitions; Acquire the attribute information of the multiple types of data sets to obtain multiple attribute information; Determine storage configuration parameters corresponding to the plurality of attribute information to obtain a plurality of storage configuration parameters; storing the multiple types of data sets into corresponding data partitions among the multiple data partitions according to the multiple storage configuration parameters; Sending the target sequence code to a user, wherein the target sequence code is used to extract the data to be stored from the flash memory chip; The step of generating an index list based on the index set of the multiple types of data sets includes: Connecting the index set of each type of data set in series to obtain multiple index character strings; concatenate the multiple index character strings together to obtain the index list; The step of processing the index list into a target sequence code includes: Extracting keywords of the data to be stored to obtain target keywords; Determining target encrypted information corresponding to the target keyword; The index list is encrypted according to the target encryption information to obtain the target sequence code.
2. The method according to claim 1, characterized in that The method further comprises: Associating the target keyword with the data to be stored to obtain target association information, and sending the target association information to a designated mailbox of the user; When the user needs to extract the data to be stored, the target association information is obtained from the designated mailbox, and the target decryption information of the data to be stored is obtained according to the target keyword in the target association information; Decrypting the target sequence code by using the target decryption information to obtain the index list; The data to be stored is acquired from the flash memory chip using the index list.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: Obtaining the data size and data type quantity of the data to be stored; When the data size is greater than a first threshold and the number of data types is greater than a second threshold, the step of classifying the data to be stored to obtain multiple types of data sets is performed.
4. A flash memory chip storage configuration device, characterized in that: The device comprises: an acquisition unit, a classification unit, a generation unit, a determination unit, a storage unit and a sending unit, wherein: The acquisition unit is used to acquire the data to be stored from the external device; The classification unit is used to classify the data to be stored to obtain multiple types of data sets, each type of data set corresponds to a data type, each data set includes at least one data and an index set, each data corresponds to an index; the index is used to represent the data storage location; The generating unit is used to generate an index list based on the index set corresponding to each type of data set of the multiple types of data sets, and process the index list into a target sequence code; The determining unit is used to determine the data partition corresponding to each type of data set in the multiple types of data sets in the flash memory chip to obtain multiple data partitions; The acquisition unit is further used to acquire the attribute information of the multiple types of data sets to obtain multiple attribute information; The determining unit is further configured to determine storage configuration parameters corresponding to the plurality of attribute information to obtain a plurality of storage configuration parameters; The storage unit is used to store the multiple types of data sets into corresponding data partitions among the multiple data partitions according to the multiple storage configuration parameters; The sending unit is used to send the target sequence code to a user, and the target sequence code is used to extract the data to be stored from the flash memory chip; Wherein, in the aspect of generating the index list based on the index set of the multi-class data set, the generating unit is specifically used for: Connecting the index set of each type of data set in series to obtain multiple index character strings; concatenate the multiple index character strings together to obtain the index list; Wherein, in the aspect of processing the index list into a target sequence code, the generating unit is specifically used for: Extracting keywords of the data to be stored to obtain target keywords; Determining target encrypted information corresponding to the target keyword; The index list is encrypted according to the target encryption information to obtain the target sequence code.
5. The device according to claim 4, characterized in that The device is also specifically used for: Associating the target keyword with the data to be stored to obtain target association information, and sending the target association information to a designated mailbox of the user; When the user needs to extract the data to be stored, the target association information is obtained from the designated mailbox, and the target decryption information of the data to be stored is obtained according to the target keyword in the target association information; Decrypting the target sequence code by using the target decryption information to obtain the index list; The data to be stored is acquired from the flash memory chip using the index list.
6. The device according to claim 4 or 5, characterized in that The device is also specifically used for: Obtaining the data size and data type quantity of the data to be stored; When the data size is greater than a first threshold and the number of data types is greater than a second threshold, the step of classifying the data to be stored to obtain multiple types of data sets is performed.
