A data storage method, device, computer equipment and medium
By detecting and configuring the storage modules, determining the target queue of the flash memory cells and establishing transmission connections, the problem of low data transmission efficiency in storage servers is solved, and efficient data storage management is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SUZHOU UNIONMEMORY INFORMATION SYST LTD
- Filing Date
- 2023-09-06
- Publication Date
- 2026-06-23
Smart Images

Figure CN117472271B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, and in particular, to a data storage method and device, computer equipment and medium. BACKGROUND
[0002] At present, in the process of data storage of electronic equipment, it is necessary to quickly detect the capacity of solid state disk and other hard disks. In the process of data transmission, the previous data is only sent to a specific single channel in the transmission process. In the process of data signal transmission, the specific data signal source cannot be sent according to the demand of the current multiple flash memory units, so that each flash memory unit cannot quickly accept the corresponding control signal, resulting in that after the signal transmission process is completed, the storage server cannot be powered on and reset and a series of operations. The storage server on the market cannot determine the version information in the process of signal transmission, and cannot issue corresponding control instructions to complete a series of storage control operations for multiple built-in flash memory units, so that when the firmware is electrically connected with the storage server, the bus may be hung up, which seriously affects the storage and use efficiency of the storage server. Therefore, the prior art method has the problem of low transmission efficiency of the storage server in the process of data transmission. SUMMARY
[0003] The embodiment of the present application provides a data storage method, which aims to solve the problem of low transmission efficiency of the storage server in the process of data transmission.
[0004] In a first aspect, the embodiment of the present application provides a data storage method, wherein the method comprises:
[0005] detecting the storage module to obtain corresponding quantity detection information;
[0006] determining a target queue corresponding to each flash memory unit according to a pre-stored connection configuration table and the quantity detection information;
[0007] updating and configuring the connection configuration table according to the target queue;
[0008] creating a transmission connection between the flash memory unit and the target queue according to the updated and configured connection configuration table;
[0009] modularly storing the received data to be stored according to the transmission connection.
[0010] In a second aspect, the embodiment of the present application further provides a data storage device, wherein the device comprises:
[0011] A quantity detection unit is configured to detect the storage module to obtain corresponding quantity detection information.
[0012] A queue determination unit is configured to determine a target queue corresponding to each flash memory unit according to a pre-stored connection configuration table and the quantity detection information.
[0013] A configuration updating unit is configured to update the connection configuration table according to the target queue.
[0014] A data transmission unit is configured to create a transmission connection between the flash memory unit and the target queue according to the updated connection configuration table.
[0015] A module storage unit is configured to modularly store the received data to be stored according to the transmission connection.
[0016] In a third aspect, an embodiment of the present application further provides a computer device, wherein the device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus.
[0017] The memory is configured to store a computer program.
[0018] The processor is configured to execute the program stored on the memory to implement the steps of the granularity storage method according to any one of the first aspect.
[0019] In a fourth aspect, an embodiment of the present application further provides a computer readable storage medium having a computer program stored thereon, wherein the computer program is executed by the processor to implement the steps of the granularity storage method according to any one of the first aspect.
[0020] Compared with the prior art, the present application has the following advantages:
[0021] The embodiment of the present application provides a data storage method, device, computer device and medium, the storage method is adapted to a storage server, the storage server is also built-in with a storage module, the storage module comprises a plurality of volatile storage media, one or more flash memory units are configured in each volatile storage medium, after the storage server is started, the following steps are sequentially performed for data transmission processing, the storage module is detected to obtain corresponding quantity detection information. According to the pre-stored connection configuration table and the quantity detection information, the target queue corresponding to each flash memory unit is determined. The connection configuration table is updated and configured according to the target queue. The transmission connection between the flash memory unit and the target queue is created according to the updated connection configuration table. The received data to be stored is modularly stored according to the transmission connection. This setting mode facilitates the user to manage the storage server. Attached Figure Description
[0022] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 A flowchart illustrating a data storage method provided in an embodiment of the present invention;
[0024] Figure 2 This is a schematic block diagram of a data storage device provided in an embodiment of the present invention;
[0025] Figure 3 A schematic block diagram of a computer device provided for an embodiment of the present invention.
[0026] Figure 4 This is a schematic diagram of signal transmission between the SSD controller and flash memory cells in a computer storage server provided in an embodiment of the present invention;
[0027] Figure 5 This is a schematic diagram of flash memory cell signal reception provided in an embodiment of the present invention. Detailed Implementation
[0028] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0029] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.
[0030] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0031] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0032] Please see Figure 1 As shown in the figure, this embodiment of the invention provides a data storage method adapted to a storage server. The storage server also has a built-in storage module, which includes multiple volatile storage media. Each volatile storage medium is configured with one or more flash memory cells. As shown in the figure, the method includes sub-steps S110-S150.
[0033] S110. The storage module is tested to obtain the corresponding quantity detection information.
[0034] In this embodiment, the storage module is the module used for information storage, and the quantity detection information is the statistical information of the number of available storage media among multiple volatile storage media.
[0035] In one embodiment, step S110 further includes the following steps: judging the storage status of each volatile storage medium in the storage module by using preset detection rules, thereby obtaining available storage media that meet the detection rules;
[0036] The quantity of all available storage media is counted to obtain the corresponding quantity detection information.
[0037] Determine the number and storage status of flash memory cells in each of the volatile storage media;
[0038] Based on the detection rules, it is determined whether the storage state of each flash memory cell in the volatile storage medium is empty, thereby determining whether the volatile storage medium is a usable storage medium.
[0039] Specifically, the storage status of each volatile storage medium in the storage module is judged by the detection rules set in the storage server, thereby obtaining the available storage medium that meets the detection rules. The quantity of all available storage mediums is counted to obtain the corresponding quantity detection information. Here, the storage status is the current storage space usage status of the volatile storage medium, the detection rule is the rule for checking the storage space of the volatile storage medium, the available storage medium is the storage medium with empty storage space, and the quantity detection information is the detection result after counting the number of the current available storage mediums. This setting method facilitates the management of the storage modules of the storage server by prioritizing the status monitoring of the storage modules and counting the number of each available storage medium.
[0040] Furthermore, in one embodiment, the storage server is provided with a storage module, which contains at least two volatile storage media. Each volatile storage media contains at least four flash memory cells. The controller transmits control signals and data packets in batches to each flash memory cell through multiple channels until the data is filled. It also adapts different types of control signals for different versions. By transmitting data in batches, the transmitted data can be quickly adapted to the entire transmission process, making it convenient for users to manage the storage server.
[0041] S120. Determine the target queue corresponding to each flash memory unit based on the pre-stored connection configuration table and the quantity detection information;
[0042] In this embodiment, the connection configuration table is used to make an overall judgment on the overall arrangement of flash memory cells, the quantity detection information is the data result of detecting the quantity of flash memory cells, and the target queue is the queue of flash memory cells waiting for data transmission.
[0043] In one embodiment, step S120 further includes the following steps: according to the number of available storage media in the quantity detection information, sequentially read the connection channels configured in the connection configuration table and configure a corresponding connection channel for each available storage medium;
[0044] Based on the number of flash memory cells contained in each available storage medium in the quantity detection information, the queues in the connection channels configured with each available storage medium are sequentially obtained and determined as the target queues corresponding to each flash memory cell in the available storage medium.
[0045] Specifically, based on the number of available storage media in the quantity detection information, the connection channels configured in the connection configuration table are read sequentially, and a corresponding connection channel is configured for each available storage medium. Based on the number of flash memory cells contained in each available storage medium in the quantity detection information, the queues in the connection channels configured for each available storage medium are obtained sequentially and determined as the target queues corresponding to each flash memory cell in the available storage medium. This setting method, after performing sequential reading and sequential acquisition operations, further determines the connection channels and the target queues corresponding to the flash memory cells, facilitating reasonable data allocation during subsequent target queue configuration updates, thereby improving the overall signal transmission efficiency of the storage server.
[0046] Specifically, in one embodiment, such as Figure 4 As shown, a single flash target has multiple flash units, and each flash unit is a LUN. In this embodiment, there are two LUNs: a first flash unit LUN1 and a second flash unit LUN2.
[0047] Furthermore, in one embodiment, such as Figure 4 As shown, depending on the backend capabilities of the SSD controller, it typically supports multiple channels and multiple CE (control signal) transmission ports. This means that multiple channels are set up on the x-axis of the queue, and multiple lines transmit control signals on the y-axis. Essentially, multiple channels are physically connected to form a single target queue, supporting multiple x*y pairs. The x-axis corresponds to the number of channels, and the y-axis corresponds to the number of queues for each channel. During transmission, multiple flash targets transmit data through channels and queues. Each channel supports n CE (control signal) transmission ports on the y-axis. A single CE (control signal) transmission port outputs a control signal and controls one flash target. A single flash target can support 1 LUN, 2 LUNs, or multiple LUNs (equivalent to multiple flash units).
[0048] S130. Update the connection configuration table according to the target queue;
[0049] In this embodiment, the target queue is the flash memory cell queue waiting for data transmission, and the configuration update is the overall process of updating the configuration of the target queue.
[0050] In one embodiment, step S130 further includes the following step: determining the connection channel to which each of the target queues belongs as a target connection channel;
[0051] The connection configuration table is updated based on the target connection channel and the target queue.
[0052] Specifically, by determining the connection channel to which each target queue belongs as the target connection channel, and updating the connection configuration table according to the target connection channel and the target queue, the configuration update of multiple target connection channels and target queues can be completed quickly. The connection channel for the data to be sent is determined first, and the connection channels are reasonably allocated to facilitate the user's rapid storage of data on the storage server. After updating each connection configuration table, the user can manage the flash memory units in the storage server in a unified manner, thereby improving the overall signal transmission efficiency of the storage server.
[0053] S140. Create a transmission connection between the flash memory unit and the target queue according to the updated connection configuration table;
[0054] In this embodiment, the transmission connection is to establish a physical connection between the flash memory cell and the target queue to perform data transmission.
[0055] In one embodiment, step S140 further includes the following step: adding an identifier to the connection channel corresponding to the channel identifier in the connection configuration table according to the channel identifier of the target connection channel;
[0056] According to the queue identifier of the target queue, an identifier is added to the queue corresponding to the queue identifier in the connection configuration table to update the configuration of the connection configuration table.
[0057] Specifically, based on the channel identifier of the target connection channel, an identifier is added to the connection configuration table corresponding to the channel identifier; based on the queue identifier of the target queue, an identifier is added to the connection configuration table corresponding to the queue identifier, so as to update the configuration of the connection configuration table. To determine whether the target connection channel is idle, a queue identifier needs to be added to the connection configuration table. The queue identifier is a transmission identifier attached after the data signal is uniformly distributed. It is used to determine whether each channel has completed data signal transmission by whether it contains a queue identifier. In one embodiment, if the transmitted signal does not reach the designated channel during the signal transmission process of the connection channel, the channel is not opened at this time, thereby disconnecting the signal line between the target connection channel and the flash memory unit, and there is no need to transmit the data signal to the corresponding flash memory unit. At this time, the configuration update is completed.
[0058] Furthermore, in one embodiment, please refer to Figure 5 As shown in the figure, this example uses two NAND devices. The two NAND flash devices occupy channels 0 and 1 on the controller side, and each NAND flash device occupies two Ce (control signal) transmission lines on the controller. If the CE2_n to CEy_n of the controller's channel connection to channel 0 and channel connection to channel 1 are all idle and there is no signal data transmission, then no physical connection is made to the NAND target. Channel 3 and channel x of the controller (SOC signal control) are idle and are not connected to the NAND device. When the firmware initializes the NAND flash interface, it only allows sending reset, status check, and other commands to CE[1:0] of CH[1:0]. Sending commands to idle NAND target channels may cause bus hangs and other abnormalities and errors. The firmware needs to perform capacity point version control in advance according to the physical connection relationship of the NAND flash, that is, different NAND flashes have different data transmission methods for different firmware versions.
[0059] S150. The received data to be stored is modularly stored according to the transmission connection.
[0060] In this embodiment, modular storage refers to a modular storage method that connects data to be stored through multiple channels.
[0061] In one embodiment, step S150 further includes the following step: generating corresponding control instructions based on the data packets contained in the data to be stored;
[0062] The control commands are processed in batches according to the transmission connection, so that the data packets corresponding to each control command are stored through the transmission connection.
[0063] Specifically, control instructions are generated based on the data packets contained in the data to be stored; the control instructions are processed in batches according to the transmission connection so that the data packets corresponding to each control instruction are stored through the transmission connection. In this configuration, control instructions are generated first, and then processed in batches. The corresponding control instructions (CE) are filtered out through batch processing, and the control instructions are sequentially output to the corresponding flash memory units for information storage control.
[0064] Specifically, in one embodiment, the split data to be stored is processed in batches. Data packets with the CE protocol are transmitted to a corresponding flash memory cell, and data packets with the CLE / ALE / REn protocol are transmitted to the corresponding volatile storage medium. The modular storage process ends when the transmission is completed.
[0065] Furthermore, in one embodiment, please refer to Figure 4 As shown in the figure, the CE (control signal) transmitting port in each connection channel outputs multiple control signals. The connection channel also includes CLE / ALE (address latch output signal) / REn and multiple DQ (data packets). The CE (control signal) in each connection channel is transmitted to the corresponding flash memory cell, while CLE / ALE (address latch output signal) / REn and multiple DQ (data packets) are transmitted to the storage module for data storage. This configuration method facilitates unified management of flash memory cells by users, thereby improving the overall storage efficiency of the storage server.
[0066] like Figure 2 As shown, a data storage device 100 includes: a quantity detection unit 110, a queue judgment unit 120, a configuration update unit 130, a data transmission unit 140, and a module storage unit 150.
[0067] The quantity detection unit 110 is used to detect the storage module and obtain corresponding quantity detection information;
[0068] The queue determination unit 120 is used to determine the target queue corresponding to each flash memory unit based on the pre-stored connection configuration table and the quantity detection information.
[0069] Configuration update unit 130 is used to update the configuration of the connection configuration table according to the target queue;
[0070] Data transmission unit 140 is used to create a transmission connection between the flash memory unit and the target queue according to the updated connection configuration table;
[0071] The module storage unit 150 is used to perform modular storage of the received data to be stored according to the transmission connection.
[0072] Specifically, the data storage device provided in this embodiment of the invention is applied to the above-mentioned data storage method. The method includes: first, performing a detection on the storage module to obtain corresponding quantity detection information; second, determining the target queue corresponding to each flash memory unit according to a pre-stored connection configuration table and the quantity detection information; third, updating the connection configuration table according to the target queue; fourth, creating a transmission connection between the flash memory unit and the target queue according to the updated connection configuration table; and sixth, performing modular storage of the received data to be stored according to the transmission connection. After the above method steps are executed, the flash memory units are stored in batches to improve the overall storage efficiency of the storage server and further facilitate user management of the storage server.
[0073] Furthermore, in one embodiment, after the above steps are completed, the VCCQ (a power supply protocol) port and VCC (power supply voltage) port of the storage server are both powered on. At this time, a time calibrator is set in the operating system built into the storage server to adjust the time synchronously. A delay time is set to wait for the entire flash memory cell (NAND Flash) to be powered on. After a certain period of time, the R / B_n (with an electrical frequency signal output port) signal line is powered on. After the Host (the computer device providing the service item) detects that the R / B_n (with an electrical frequency signal output port) has risen effectively, an interrupt signal is emitted. During the interrupt process, the Map (a type of mapping table) in the Target Flash (target storage cell) is updated in the processing function until the signal interrupt monitoring action in the R / B_n (with an electrical frequency signal output port) of the last Target Flash (target storage cell) is completed. At this time, the overall scanning process of the Target (target signal) of the Nand Flash (flash memory cell) ends.
[0074] The aforementioned data storage device based on resource allocation can be implemented as a computer program, which can be used in, for example... Figure 3 It runs on the computer device shown.
[0075] Please see Figure 3 As shown in the figure, Figure 3 This is a schematic block diagram of a computer device provided in an embodiment of the present invention. The computer device may be a recording terminal used to execute a data storage method to record screen display content.
[0076] See Figure 3 As shown in the figure, the computer device 500 includes a processor 502, a memory, and a network interface 505 connected via a communication bus 501. The memory may include a storage medium 503 and internal memory 504.
[0077] The storage medium 503 may store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, it causes the processor 502 to perform a data storage method, wherein the storage medium 503 may be a volatile storage medium or a non-volatile storage medium.
[0078] The processor 502 provides computing and control capabilities to support the operation of the entire computer device 500.
[0079] The internal memory 504 provides an environment for the execution of the computer program 5032 in the storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a data storage method.
[0080] This network interface 505 is used for network communication, such as providing data transmission. Those skilled in the art will understand that... Figure 3 The structure shown is merely a block diagram of a portion of the structure related to the present invention and does not constitute a limitation on the computer device 500 to which the present invention is applied. The specific computer device 500 may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0081] The processor 502 is used to run the computer program 5032 stored in the memory to implement the corresponding function in the above-described data storage method.
[0082] Those skilled in the art will understand; please refer to Figure 3 , Figure 3The embodiments of the computer device shown do not constitute a limitation on the specific configuration of the computer device. In other embodiments, the computer device may include more or fewer components than illustrated, or combine certain components, or have different component arrangements. For example, in some embodiments, the computer device may include only memory and a processor. In such embodiments, the structure and function of the memory and processor are different from those shown. Figure 3 The embodiments shown are consistent and will not be described again here.
[0083] It should be understood that, in this embodiment of the invention, the processor 502 may be a Central Processing Unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0084] In another embodiment of the invention, a computer-readable storage medium is provided. This computer-readable storage medium may be volatile or non-volatile. The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps included in the data storage method described above.
[0085] Those skilled in the art will readily understand that, for the sake of convenience and brevity, the specific working processes of the devices, apparatuses, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this invention.
[0086] In the embodiments provided by this invention, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Units with the same function can be encapsulated into one unit. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Furthermore, the couplings or direct couplings or communication connections shown or discussed can be indirect couplings or communication connections through some interfaces, devices, or units, or they can be electrical, mechanical, or other forms of connection.
[0087] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the embodiments of the present invention, depending on actual needs.
[0088] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0089] If the integrated unit is implemented as 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 invention, in essence, 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. This computer software product is stored in a computer-readable storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned computer-readable storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks.
[0090] This invention provides a data storage method, apparatus, computer device, and medium. The storage method is adapted to a storage server, which also has a built-in storage module. Each storage module includes multiple volatile storage media, and each volatile storage media is configured with one or more flash memory cells. After the storage server is powered on, data transmission is processed sequentially through the following steps: the storage module is detected to obtain corresponding quantity detection information; a target queue corresponding to each flash memory cell is determined based on a pre-stored connection configuration table and the quantity detection information; the connection configuration table is updated according to the target queue; a transmission connection is created between the flash memory cell and the target queue based on the updated connection configuration table; and the received data to be stored is modularly stored according to the transmission connection. This configuration facilitates user management of the storage server.
[0091] In addition, by conducting a recording test, various abnormal situations can be detected in advance, allowing users to be informed and make choices beforehand, instead of notifying users of recording failures when the actual recording begins, thus optimizing the user experience.
[0092] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A data storage method, characterized in that, The storage method is adapted to a storage server, which also has a built-in storage module. The storage module includes multiple volatile storage media, each of which is configured with one or more flash memory cells. The method includes: The storage module is tested to obtain the corresponding quantity detection information; Based on the pre-stored connection configuration table and the quantity detection information, determine the target queue corresponding to each flash memory unit; Update the connection configuration table according to the target queue; Create a transmission connection between the flash memory cell and the target queue according to the updated connection configuration table; The received data to be stored is modularized according to the transmission connection; The step of determining the target queue corresponding to each flash memory cell based on the pre-stored connection configuration table and the quantity detection information includes: Based on the number of available storage media in the quantity detection information, sequentially read the connection channels configured in the connection configuration table and configure a corresponding connection channel for each available storage medium; Based on the number of flash memory cells contained in each available storage medium in the quantity detection information, the queues in the connection channels configured with each available storage medium are sequentially obtained and determined as the target queues corresponding to each flash memory cell in the available storage medium; The step of updating the connection configuration table according to the target queue includes: The connection channel to which each of the target queues belongs is determined as the target connection channel; The connection configuration table is updated based on the target connection channel and the target queue. The step of updating the connection configuration table according to the target connection channel and the target queue includes: According to the channel identifier of the target connection channel, add an identifier to the connection channel corresponding to the channel identifier in the connection configuration table; According to the queue identifier of the target queue, an identifier is added to the queue corresponding to the queue identifier in the connection configuration table to update the configuration of the connection configuration table.
2. The data storage method according to claim 1, characterized in that, The step of detecting the storage module to obtain corresponding quantity detection information includes: The storage status of each volatile storage medium in the storage module is determined by a preset detection rule, thereby obtaining the usable storage medium that meets the detection rule. The quantity of all available storage media is counted to obtain the corresponding quantity detection information.
3. The data storage method according to claim 2, characterized in that, The step of determining the storage status of each volatile storage medium in the storage module according to preset detection rules, thereby obtaining usable storage media that meet the detection rules, includes: Determine the number and storage status of flash memory cells in each of the volatile storage media; Based on the detection rules, it is determined whether the storage state of each flash memory cell in the volatile storage medium is empty, thereby determining whether the volatile storage medium is a usable storage medium.
4. The data storage method according to claim 1, characterized in that, The modular storage of received data to be stored according to the transmission connection includes: Generate corresponding control instructions based on the data packets contained in the data to be stored; The control commands are processed in batches according to the transmission connection, so that the data packets corresponding to each control command are stored through the transmission connection.
5. A data storage device, characterized in that, The apparatus is used to perform the data storage method according to any one of claims 1-4, the apparatus comprising: A quantity detection unit is used to detect the storage module and obtain corresponding quantity detection information; The queue determination unit is used to determine the target queue corresponding to each flash memory unit based on the pre-stored connection configuration table and the quantity detection information. A configuration update unit is used to update the configuration of the connection configuration table according to the target queue; A data transmission unit is used to create a transmission connection between the flash memory unit and the target queue according to the updated connection configuration table. The module storage unit is used to perform modular storage of the received data to be stored according to the transmission connection.
6. A computer device, characterized in that, The device includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the steps of the data storage method according to any one of claims 1-4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the data storage method as described in any one of claims 1-4.