Interactive perception data acquisition and storage method based on BGA SSD

By adopting the interactive sensing data collection and storage method on the BGA SSD solid state drive, dynamically managing storage blocks and encrypting protected data, the problem of increased storage error rate and loss of important data in the solid state drive is solved, and the durability and data security of the hard drive are improved. sex.

CN118550475APending Publication Date: 2024-08-27XIAN TAOWEI ELECTRONIC TECH CO LTD

Patent Information

Application Number
CN202410993261.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

After long-term use of existing BGA SSD solid-state drives, the error rate of stored data increases, resulting in uncorrectable errors, affecting its durability, and failing to effectively protect important data files, posing a risk of loss.

Method used

An interactive sensing data collection and storage method based on BGA SSD is adopted. Initial data is collected through data collection equipment, preprocessed and divided into grouped data with different levels of importance. The storage server is used for caching and block storage, and the erasure of storage blocks is dynamically adjusted. times, combines encryption algorithms to protect data, and reminds users to back up through a lifespan prediction mechanism.

Benefits of technology

It improves the durability and data protection of the solid-state drive, reduces the generation of bad blocks, ensures the safety of important data in a reliable storage environment, extends the service life of the solid-state drive, and prompts users to perform data backup in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550475A
    Figure CN118550475A
Patent Text Reader

Abstract

The invention relates to the technical field of computers, and particularly discloses a BGA SSD-based interactive perception data acquisition and storage method, which comprises the following steps of: acquiring initial data through data acquisition equipment; preprocessing the initial data to obtain a plurality of valuable grouped data; the multiple pieces of grouped data are divided according to the importance level sequence to obtain multiple pieces of grouped data, the multiple pieces of grouped data at least comprise first grouped data and second grouped data, and the importance level of the first grouped data is higher than that of the second grouped data; according to the method, the storage server is used for providing cache for the solid state disk, after the multiple grouped data are transferred from the data cache block to the storage block of the corresponding fixed hard disk, the data cache block is released, the data are transferred from the cache block to the solid state disk, the more hot data are stored in the cache, the less read-write operation on the solid state disk is, and the more hot data are stored in the cache. The durability of the solid state disk is improved, and the risk of data loss caused by bad blocks is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a BGA SSD-based interactive perception data acquisition and storage method. Background Art

[0002] BGA SSD is an embedded solid-state drive that uses BGA (Ball Grid Array) technology. Among them, the solid-state drive SSD (Solid State Drive) is a hard disk made of a solid-state electronic storage chip array, consisting of a control unit and a storage unit (FLASH chip). It is widely used in military, vehicle-mounted, industrial control, video surveillance, network monitoring, network terminals, electricity, medical, aviation, navigation equipment and other fields; when storing data, solid-state drives are gradually replacing mechanical hard disks due to their high-speed read and write performance and low failure rate, becoming the mainstream storage device. Solid-state drives mainly correct errors in stored data through error checking and correction modules. As the use time of solid-state drives increases, the error rate of stored data gradually increases. When the number of erroneous bits exceeds the error correction capability of the error checking and correction module, uncorrectable errors will occur, and the solid-state drive can no longer be used.

[0003] Therefore, in order to avoid frequent erasure of a few blocks, which would quickly increase the bit error rate and affect the durability of the SSD, and in order to avoid the failure to fully consider the different importance of data files during erasure, resulting in important data files being stored in the bad block area, which would lead to the risk of important data files being lost, it is necessary to design an interactive perception data acquisition and storage method based on BGASSD to improve the above problems. Summary of the invention

[0004] The purpose of the present invention is to overcome the defects of the prior art and provide an interactive perception data acquisition and storage method based on BGA SSD.

[0005] The present invention provides a method for collecting and storing interactive perception data based on BGA SSD, the method comprising: S101, collecting initial data through a data collection device; S102, preprocessing the initial data to obtain a plurality of valuable grouped data; S103, dividing the plurality of grouped data in order of importance to obtain a plurality of grouped data, wherein the plurality of grouped data at least includes a first grouped data and a second grouped data, and the first grouped data has a higher importance level than the second grouped data; Dividing the solid state drive into a plurality of storage units, each storage unit having a unique storage location; Dividing the storage unit into a plurality of storage blocks, recording the storage address of each storage block, and providing a data cache block corresponding to the storage block in the storage server; After the plurality of packet data are input into the storage server, the sources of the plurality of packet data are analyzed to determine the storage paths corresponding to the plurality of packet data, and the corresponding storage threads are called based on the storage paths corresponding to the plurality of packet data, and the control module controls the storage threads to store the plurality of packet data into the corresponding data cache blocks; in the process of storing the plurality of packet data into the data cache blocks, the effective storage space value of the data cache blocks is detected, and when the effective storage space value of the data cache blocks is reduced to a set threshold value, all the plurality of packet data in the data cache blocks are transferred and stored in a set period, and a transfer instruction is formed, and all the plurality of packet data are transferred and stored from the data cache blocks to the corresponding storage blocks of the fixed hard disk based on the transfer instruction; Further, in S103, the plurality of storage blocks at least include: a first storage block and a second storage block, a first preset upper limit of erasure times of the first storage block is less than a second preset upper limit of erasure times of the second storage block; the first packet data and the second packet data are written to the first storage block and the second storage block respectively; Obtaining the number of erase and write times of the first storage block and the second storage block; Divide the portion of the first storage block and the second storage block with a relatively small number of erasure times into a new first storage block, and divide the portion with a relatively large number of erasure times into a new second storage block, wherein the upper limit of the number of erasure times of the new first storage block is the same as the first preset upper limit of the number of erasure times, and the upper limit of the number of erasure times of the new second storage block is the same as the second preset upper limit of the number of erasure times; The first group data and the second group data are transferred to the new first storage block and the new second storage block respectively.

[0006] Determining the number of sub-erase and write times of each sub-block portion in the first storage block includes: the first storage block includes N sub-block portions, and the number of sub-erase and write times of each sub-block portion are K1, K2, ..., K N , the sub-block part includes the 1st sub-block part to the Nth sub-block part; The sub-block portion whose sub-erase times reaches the first preset upper limit of erase times is determined as a discarded sub-block portion, including: if the sub-erase times K of the i-th sub-block portion is i When the first preset upper limit of erasure times K is reached, the i-th sub-block portion is determined as a discarded sub-block portion, where i is less than or equal to N and greater than or equal to 1; According to the proportion of the abandoned sub-block part in the first storage block, judging whether the erasure number of the first storage block reaches the first preset upper limit of the erasure number, including: the number of the abandoned sub-block parts is n, and the proportion of the abandoned sub-block parts in the first storage block is n / N, when n / N is greater than a set proportion threshold value P, it is judged that the erasure number of the first storage block reaches the first preset upper limit of the erasure number, and when n / N is less than or equal to the set proportion threshold value P, it is judged that the erasure number of the first storage block does not reach the first preset upper limit of the erasure number; If the erasure times of the first storage block reaches the first preset upper limit of erasure times, the portion of the second storage block whose erasure times are less than the first preset upper limit of erasure times is determined as a regenerated first storage block, and the upper limit of the erasure times of the regenerated first storage block is the same as the first preset upper limit of erasure times; and the newly written first packet data is stored in the regenerated first storage block; Further, in S103, after the step of obtaining a plurality of group data, the method further includes: If the importance level of the packet data is higher than a first preset threshold, encrypt the corresponding packet data using an RSA algorithm in an asymmetric encryption algorithm to obtain highly encrypted packet data; When the importance level of the packet data is lower than a second preset threshold, the corresponding packet data is not encrypted to obtain unencrypted packet data; Using the AES algorithm in the symmetric encryption algorithm, encrypt the group data that does not belong to the high-encryption group data and the unencrypted group data among the multiple group data to obtain low-encryption group data; Furthermore, after the step of obtaining the number of erasure and writing times of the first storage block and the second storage block, the method further includes: Divide the portion of the first storage block and the second storage block with a relatively small number of erasure times into a new first storage block, and divide the portion with a relatively large number of erasure times into a new second storage block, wherein the upper limit of the number of erasure times of the new first storage block is the same as the first preset upper limit of the number of erasure times, and the upper limit of the number of erasure times of the new second storage block is the same as the second preset upper limit of the number of erasure times; Transferring the first group data and the second group data to the new first storage block and the new second storage block respectively; Further, a method for moving the plurality of grouped data from the data cache block of the storage server to the storage block of the fixed hard disk based on the moving instruction is: Obtain storage space occupancy values ​​of multiple grouped data in the data cache block, select a corresponding transfer path based on the storage space occupancy value, match the transfer path to the storage address of the storage block, and form a storage list with a data list; based on the configured transfer path, transfer the multiple grouped data from the data cache block to the storage block of the fixed hard disk; At the same time, the real-time storage space of the storage block is calculated based on the original storage space value of the storage block and the storage space occupied value of all the multiple grouped data in each transfer process; Furthermore, during the transfer process, the control module obtains the characteristic code of each of the plurality of grouped data based on the corresponding relationship between the storage list and the data list; and determines whether the transfer task is transferred to the storage unit by identifying the characteristic code of each of the plurality of grouped data; Furthermore, after storing the newly written first group data in the step of regenerating the first storage block, the method further includes: Obtaining the used capacity, remaining capacity, usage time, number of bad blocks and number of erase / write times, and determining a life prediction value of the solid-state drive based on the used capacity, remaining capacity, usage time, number of bad blocks and number of erase / write times of the plurality of storage blocks; When the predicted life value is lower than a preset life threshold, a prompt message is issued; the prompt message is used to prompt the user to back up the data; Further, the determining of the life prediction value of the solid state drive based on the used capacity, remaining capacity and number of bad blocks of the plurality of storage blocks specifically includes: Determine a first life value according to the used capacity, remaining capacity and usage time of the plurality of storage blocks; determine a second life value according to the number of bad blocks, the number of erases and writes and usage time of the plurality of storage blocks; determine a life prediction value of the solid state drive based on the first life value and the second life value; Compared with the prior art, the present invention has the following beneficial effects: (1) The present invention uses a storage server to provide a cache for a solid-state hard disk, and sets an upper limit value of a data cache block in the storage server; after a plurality of packet data are transferred from the data cache block to a storage block of a corresponding fixed hard disk, the data cache block is released, and the plurality of packet data are first aggregated into a data block, and then the data block is stored in a storage block of the solid-state hard disk. The more data is stored in the data cache block, the fewer read and write operations are performed on the solid-state hard disk, thereby improving the durability of the solid-state hard disk; all of the plurality of packet data in the data cache block are transferred to the solid-state hard disk in a set period, so as to ensure that the data can be saved in the solid-state hard disk in a timely manner; (2) The present invention re-divides the parts with relatively fewer and more erase / write times into a new first storage block and a new second storage block, respectively, and sets erase / write times limits that are the same as the first preset upper limit of erase / write times and the second preset upper limit of erase / write times, respectively, so as to balance the load of the storage blocks and avoid premature wear of certain blocks; the erase / write times of the first storage block are kept relatively few, the occurrence of bad blocks is reduced, and the first group data with a higher importance level is protected in a more reliable storage environment without the risk of data loss. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] The following drawings are only used to illustrate and explain the present invention, and are not used to limit the scope of the present invention, wherein: Figure 1 : A flow chart of the interactive sensing data acquisition and storage method based on BGA SSD of the present invention; Figure 2 : A schematic diagram of a process flow of data storage in a solid state drive according to an embodiment of the present invention; Figure 3 : Schematic diagram of the structure of the interactive perception data acquisition and storage system based on BGA SSD of the present invention. DETAILED DESCRIPTION

[0008] In order to make the purpose, technical solution, design method and advantages of the present invention clearer, the present invention is further described in detail by specific embodiments in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0009] An interactive sensing data collection and storage method based on BGA SSD is applied to BGA SSD (Ball Grid Array Solid State Drive, packaging technology solid state drive), which integrates a high-performance controller chip and up to 8 flash memory chips and has a standard 1620 BGA SSD (Ball Grid Array Solid State Drive, packaging technology solid state drive) appearance size; like Figure 1-Figure 3 As shown, the present invention provides an interactive perception data acquisition and storage method based on BGA SSD, which specifically includes: S101, collecting initial data through a data collection device; Initial data is collected through a data acquisition device, which is connected to a BGA SSD (Ball Grid Array Solid State Drive) through an interface to ensure that data can be quickly transmitted to a storage medium; wherein the data acquisition device is a sensor or other data acquisition device, which is used to obtain various types of data in real time; S102, preprocessing the initial data to obtain multiple valuable group data; wherein the initial data is preprocessed by data cleaning, format conversion, etc. to improve the efficiency of subsequent storage and processing. The processor is used to perform real-time analysis on the initial data to identify valuable information or abnormal data to provide support for subsequent storage and application.

[0010] S103, dividing the plurality of grouped data in order of importance to obtain a plurality of grouped data, wherein the plurality of grouped data at least includes a first grouped data and a second grouped data, and the first grouped data has a higher importance level than the second grouped data; Dividing the solid state drive into a plurality of storage units, each storage unit having a unique storage location; Dividing the storage unit into a plurality of storage blocks, recording the storage address of each storage block, and providing a data cache block corresponding to the storage block in the storage server; After the plurality of packet data are input into the storage server, the sources of the plurality of packet data are analyzed to determine the storage paths corresponding to the plurality of packet data, and the corresponding storage threads are called based on the storage paths corresponding to the plurality of packet data, and the control module controls the storage threads to store the plurality of packet data into the corresponding data cache blocks; in the process of storing the plurality of packet data into the data cache blocks, the effective storage space value of the data cache blocks is detected, and when the effective storage space value of the data cache blocks is reduced to a set threshold value, all the plurality of packet data in the data cache blocks are transferred and stored in a set period, and a transfer instruction is formed, and all the plurality of packet data are transferred and stored from the data cache blocks to the corresponding storage blocks of the fixed hard disk based on the transfer instruction; It should be noted that the present application utilizes a storage server to provide a cache for a solid-state drive. Specifically, an upper limit value of a data cache block is set in the storage server; initial data is collected by a data acquisition device and then transmitted to the solid-state drive after processing. Before being stored in the solid-state drive, a data cache block is set in the storage server. The data cache block is configured to have a set cache storage space value. For example, each cache storage space value is 100K. Before multiple packet data are stored, they are first stored in the data cache block. After a certain amount of data is stored, the multiple packet data are moved from the data cache block to the corresponding After the storage block of the fixed hard disk, the data cache block is released, and the data cache block is restored to the set storage value for the next round of data storage. The principle is to use a block storage method to aggregate multiple grouped data into a data block, and then store the data block in the storage block of the solid-state hard disk. Since a data list is formed in the data cache block, after the data block is moved to the storage block, the corresponding data list is configured in the storage block to form a storage list, so it will not cause data confusion; the more hot data is stored in the data cache block, the fewer read and write operations on the solid-state hard disk. The data access of multiple solid-state hard disks is grouped together for access, which improves the speed of system data processing. The size of the specific data cache block of the solid-state hard disk can be set according to the needs of the user and the processing capacity of the specific system. At the same time, the first grouped data is written into the first storage block, keeping the number of erase and write times of the first storage block relatively small, reducing the occurrence of bad blocks and the loss of important data; so that the first grouped data with a higher level of importance can be protected in a more reliable storage environment; Further, in S103, the plurality of storage blocks at least include: a first storage block and a second storage block, a first preset upper limit of erasure times of the first storage block is less than a second preset upper limit of erasure times of the second storage block; the first packet data and the second packet data are erased to the first storage block and the second storage block respectively; Obtaining the number of erase and write times of the first storage block and the second storage block; Divide the portion of the first storage block and the second storage block with a relatively small number of erasure times into a new first storage block, and divide the portion with a relatively large number of erasure times into a new second storage block, wherein the upper limit of the number of erasure times of the new first storage block is the same as the first preset upper limit of the number of erasure times, and the upper limit of the number of erasure times of the new second storage block is the same as the second preset upper limit of the number of erasure times; The first group data and the second group data are transferred to the new first storage block and the new second storage block respectively.

[0011] Determining the number of sub-erase and write times of each sub-block portion in the first storage block includes: the first storage block includes N sub-block portions, and the number of sub-erase and write times of each sub-block portion are K1, K2, ..., K N The sub-block parts include the 1st sub-block part to the Nth sub-block part; The sub-block portion whose sub-erase times reaches the first preset upper limit of erase times is determined as a discarded sub-block portion, including: if the sub-erase times K of the i-th sub-block portion is i When the first preset upper limit of erasure times K is reached, the i-th sub-block portion is determined as a discarded sub-block portion, where i is less than or equal to N and greater than or equal to 1; According to the proportion of the abandoned sub-block part in the first storage block, judging whether the erasure number of the first storage block reaches the first preset upper limit of the erasure number, including: the number of the abandoned sub-block parts is n, and the proportion of the abandoned sub-block parts in the first storage block is n / N, when n / N is greater than a set proportion threshold value P, it is judged that the erasure number of the first storage block reaches the first preset upper limit of the erasure number, and when n / N is less than or equal to the set proportion threshold value P, it is judged that the erasure number of the first storage block does not reach the first preset upper limit of the erasure number; If the erasure times of the first storage block reaches the first preset upper limit of erasure times, the portion of the second storage block whose erasure times are less than the first preset upper limit of erasure times is determined as a regenerated first storage block, and the upper limit of the erasure times of the regenerated first storage block is the same as the first preset upper limit of erasure times; and the newly written first packet data is stored in the regenerated first storage block; It should be noted that the storage unit of the solid-state hard disk is divided into multiple storage blocks, the erasure times of each storage block is monitored, and when the first storage block reaches the preset upper limit of the erasure times, the part of the second storage block with a lower erasure times is regenerated as a newly added first storage block, so as to ensure the storage block of important data with a higher security level, so as to reduce the situation where the storage area where the high-security level data is located generates bad blocks due to excessive erasure times, resulting in the loss of important data, and ensure the stability and reliability of the high-security level data stored in the solid-state hard disk, and provide a more refined method for maintaining the solid-state hard disk; Further, in S103, after the step of obtaining a plurality of group data, the method further includes: If the importance level of the packet data is higher than a first preset threshold, the corresponding packet data is encrypted using an RSA (composed of the initials of the surnames of Ron Rivest, Adi ShaKir and Leonard AdleKan, a public key cryptography) algorithm in an asymmetric encryption algorithm to obtain highly encrypted packet data; When the importance level of the packet data is lower than a second preset threshold, the corresponding packet data is not encrypted to obtain unencrypted packet data; Using an Advanced Encryption Standard (AES) algorithm in a symmetric encryption algorithm, encrypting the packet data that does not belong to the high-encryption packet data and the unencrypted packet data among the multiple packet data to obtain low-encryption packet data; It should be noted that the plurality of grouped data are divided based on importance levels.

[0012] Determine multiple importance levels of multiple packet data; when the security level of the packet data is higher than a set first preset threshold, use the RSA algorithm in the asymmetric encryption algorithm to encrypt the corresponding packet data to obtain highly encrypted packet data; when the importance level of the packet data is lower than a set second preset threshold, do not encrypt the corresponding packet data to obtain unencrypted packet data; and use the AES (Advanced Encryption Standard) algorithm in the symmetric encryption algorithm to encrypt the packet data that does not belong to the highly encrypted packet data and the unencrypted packet data among the multiple packet data to obtain low-encrypted packet data; Specifically, based on the preliminary evaluation results of the importance levels of each group of data, the specific importance level of each group of data is determined, and a first preset threshold and a second preset threshold are set for the security level of the group data. For example, based on the sensitivity of the content, the group containing user privacy data is judged to be at an importance level of 90, the group containing internal company reports is judged to be at an importance level of 60, and the public data group that does not contain sensitive information is judged to be at an importance level of 30.

[0013] For data with a very critical importance level, the RSA (composed of the initials of the surnames of Ron Rivest, Adi ShaKir and Leonard AdleKan, public key cryptography) encryption algorithm in the asymmetric encryption algorithm is used for encryption. The RSA (composed of the initials of the surnames of Ron Rivest, Adi ShaKir and Leonard AdleKan, public key cryptography) algorithm generates a public key and a private key, and uses one of the keys to encrypt the data. Only the corresponding other keys can decrypt it, which can ensure the confidentiality and integrity of the data. For packet data with an importance level higher than 80, the RSA (composed of the initials of the surnames of RonRivest, Adi ShaKir and Leonard AdleKan, public key cryptography) algorithm is used for high-security strong encryption to generate encrypted packet data that can only be accessed by authorized parties. For non-sensitive data, the unencrypted original packet data can be directly output. For example, public data with a security level lower than 20 does not need to be encrypted. This can reduce computing resource consumption; for data with a medium security level between the two, the AES (Advanced Encryption Standard) algorithm in the symmetric encryption algorithm is used for low-intensity encryption. The AES (Advanced Encryption Standard) algorithm uses the same key for encryption and decryption, which is fast and can be applied to encrypt most non-core data. In this way, differentiated encryption processing can be adopted according to the security sensitivity of the data, which not only ensures the security of important data, but also takes into account computing efficiency and realizes the optimization of data encryption.

[0014] Furthermore, after the step of obtaining the number of erasure and writing times of the first storage block and the second storage block, the method further includes: Divide the portion of the first storage block and the second storage block with a relatively small number of erasure times into a new first storage block, and divide the portion with a relatively large number of erasure times into a new second storage block, wherein the upper limit of the number of erasure times of the new first storage block is the same as the first preset upper limit of the number of erasure times, and the upper limit of the number of erasure times of the new second storage block is the same as the second preset upper limit of the number of erasure times; The first group data and the second group data are transferred to the new first storage block and the new second storage block respectively.

[0015] It should be noted that by re-dividing the parts with relatively fewer and more erase times into new first storage blocks and new second storage blocks, respectively, and setting erase times limits that are the same as the first preset upper limit of erase times and the second preset upper limit of erase times, respectively, the load of the storage blocks can be balanced to avoid premature wear of certain blocks. At the same time, the erase times of the first storage block are kept relatively small, the occurrence of bad blocks is reduced, and the first group data with a higher security level is protected in a more reliable storage environment, thereby extending the overall service life of the solid-state drive. This optimization strategy helps to improve the reliability and performance stability of the solid-state drive; Further, a method for moving the plurality of grouped data from the data cache block of the storage server to the storage block of the fixed hard disk based on the moving instruction is: Obtain storage space occupancy values ​​of multiple grouped data in the data cache block, select a corresponding transfer path based on the storage space occupancy value, match the transfer path to the storage address of the storage block, and form a storage list with a data list; based on the configured transfer path, transfer the multiple grouped data from the data cache block to the storage block of the fixed hard disk; At the same time, the real-time storage space of the storage block is calculated based on the original storage space value of the storage block and the storage space occupied value of all the multiple grouped data in each transfer process; Furthermore, during the transfer process, the control module obtains the characteristic code of each of the plurality of grouped data based on the corresponding relationship between the storage list and the data list; and determines whether the transfer task is transferred to the storage unit by identifying the characteristic code of each of the plurality of grouped data; Furthermore, after storing the newly written first group data in the step of regenerating the first storage block, the method further includes: Obtaining the used capacity, remaining capacity, usage time, number of bad blocks and number of erase / write times, and determining a life prediction value of the solid-state drive based on the used capacity, remaining capacity, usage time, number of bad blocks and number of erase / write times of the plurality of storage blocks; When the predicted life value is lower than a preset life threshold, a prompt message is issued; the prompt message is used to prompt the user to back up the data; Further, the determining of the life prediction value of the solid state drive based on the used capacity, remaining capacity and number of bad blocks of the plurality of storage blocks specifically includes: Determine a first life value according to the used capacity, remaining capacity and usage time of the plurality of storage blocks; determine a second life value according to the number of bad blocks, the number of erases and writes and usage time of the plurality of storage blocks; determine a life prediction value of the solid state drive based on the first life value and the second life value; It should be noted that the life prediction value of the SSD can be used to evaluate the health status and remaining life of the SSD, so as to promptly prompt the user to take data backup measures.

[0016] Specifically, it includes: 1) determining the first life value according to the used capacity, remaining capacity and usage time of multiple storage blocks. Specifically, the used capacity, remaining capacity and usage time of each storage block are collected, which reflect the capacity consumption of the solid-state drive. According to the used capacity and usage time of each storage block, the average usage rate of each block can be calculated. According to the remaining capacity and the average usage rate, the remaining first life value of the solid-state drive can be estimated; 2) Determine the second life value according to the number of bad blocks, the number of erases and writes, and the usage time of multiple storage blocks. Specifically, collect the number of bad blocks, the number of erases and writes, and the usage time of each block, which reflect the physical wear and tear of the solid-state drive. The more bad blocks, the higher the number of erases and writes, and the shorter the usage time, the faster the physical wear rate of the solid-state drive and the shorter the life, and thus the remaining second life value of the solid-state drive can be estimated; based on the first life value and the second life value, determine the life prediction value of the solid-state drive; considering both the capacity consumption factor of the solid-state drive and the physical wear factor, this prediction result is more comprehensive and accurate, and can better judge the actual health status and remaining life of the solid-state drive. When the life prediction value is lower than the preset life threshold, send a prompt message. Compare the life prediction value with the preset life threshold. When the prediction value is lower than the threshold, it means that the solid-state drive is close to the service life limit. At this time, send a prompt message of poor storage health to the user terminal, prompting the user to manually back up important data in time to avoid data loss. If the prediction value is normal, no prompt message is sent.

[0017] Embodiment 2, an interactive perception data acquisition and storage system based on BGA SSD, comprising: one or more processors and storage servers and sensors, wherein the sensors are connected to BGA SSD (Ball Grid Array Solid State Drive, packaging technology solid state drive) through interfaces such as USB (Universal Serial Bus), PCIe (PCI-Express, bus interface), etc., to ensure that data can be quickly transmitted to a computer-readable storage medium; The storage server is coupled to the one or more processors, the storage server is used to store computer program codes, the computer program codes include computer instructions, a computer readable storage medium stores computer instructions, and the one or more processors call the computer instructions to enable the solid state disk acquisition and storage device to execute the data acquisition and storage method; A solid-state hard disk, wherein the storage unit of the solid-state hard disk is configured into a plurality of storage blocks, and the storage address of each storage block is recorded; A data cache block is provided in the storage server and corresponds one-to-one to the storage block, and the data cache block is configured to have a set cache storage space value; The solid state drive is also provided with an analysis module, a control module, a storage module, a storage thread configuration module and an initialization module; The analysis module is used to analyze the sources of the plurality of grouped data after inputting the plurality of grouped data into the storage server to determine the storage paths corresponding to the plurality of grouped data; The control module controls the storage thread configuration module to generate a storage thread and call the storage thread based on the storage paths corresponding to the multiple packet data, and the control module controls the storage thread to store the multiple packet data in the corresponding data cache block; in the process of storing the multiple packet data in the data cache block, the effective storage space value of the data cache block is detected, and when the effective storage space value of the data cache block is reduced to a set threshold, all the multiple packet data in the data cache block are transferred and stored in a set period, and a transfer instruction is formed, that is, the multiple packet data in the fixed hard disk memory are periodically cleaned up and the multiple packet data are transferred and stored; the transfer module is used to transfer all the multiple packet data from the data cache block to the corresponding fixed hard disk storage block based on the transfer instruction; After all the multiple grouped data are moved from the data cache block to the corresponding fixed hard disk storage block, the control module controls the initialization module to perform an initialization operation on the data cache block. After the initialization operation is completed, the memory occupied by the data cache block is released and restored to the set cache storage space value; Wherein, the control module is provided with a detection unit, a storage task determination unit and a recording unit; The storage task determination unit is used to read the comprehensive judgment result of the storage thread to determine that the storage thread is executing the storage task of the plurality of grouped data; The detection unit sends a memory detection instruction to perform memory monitoring round inspection on the data cache block within a set period; after each monitoring, the effective storage space value of the data cache block is correspondingly recorded; The recording unit is used to use the effective storage space value of the data cache block finally recorded in each set cycle as the initial value for the memory monitoring round check in the next cycle.

[0018] The method in which the transfer module transfers all the plurality of grouped data from the data cache block to the corresponding fixed hard disk storage block based on the transfer instruction is: The control module reads the transfer instruction and retrieves the data list corresponding to the transfer instruction; Obtain storage space occupancy values ​​of all the multiple grouped data in the data cache block, select a corresponding transfer path based on the storage space occupancy value, match the transfer path to the storage address of the storage block, and form a storage list with a data list; based on the configured transfer path, transfer all the multiple grouped data from the data cache block to the corresponding fixed hard disk storage block; At the same time, the real-time storage space of the storage block is calculated based on the original storage space value of the storage block and the storage space occupation value of all the multiple grouped data in each transfer process.

[0019] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A method for collecting and storing interactive perception data based on BGA SSD, characterized in that: The method comprises: S101, collecting initial data through a data collection device; S102, preprocessing the initial data to obtain a plurality of valuable grouped data; S103, dividing the plurality of grouped data in order of importance to obtain a plurality of grouped data, wherein the plurality of grouped data at least includes a first grouped data and a second grouped data, and the first grouped data has a higher importance level than the second grouped data; The solid state hard disk is divided into a plurality of storage units, each storage unit having a unique storage location; the storage unit is divided into a plurality of storage blocks, the storage address of each storage block is recorded, and a data cache block corresponding to the storage block is provided in the storage server; After the plurality of packet data are input into the storage server, the sources of the plurality of packet data are analyzed to determine the storage paths corresponding to the plurality of packet data, and the corresponding storage threads are retrieved based on the storage paths corresponding to the plurality of packet data, and the control module controls the storage threads to store the plurality of packet data into the corresponding data cache blocks; in the process of storing the plurality of packet data into the data cache blocks, the effective storage space value of the data cache blocks is detected, and when the effective storage space value of the data cache blocks is reduced to a set threshold value, all the plurality of packet data in the data cache blocks are transferred in a set period, and a transfer instruction is formed, and based on the transfer instruction, all the plurality of packet data are transferred from the data cache blocks to the corresponding fixed hard disk storage blocks.

2. According to the BGA SSD-based interactive perception data acquisition and storage method of claim 1, it is characterized in that: In S103, the plurality of storage blocks at least include: a first storage block and a second storage block, wherein a first preset upper limit of erasure times of the first storage block is less than a second preset upper limit of erasure times of the second storage block; the first packet data and the second packet data are written to the first storage block and the second storage block respectively; Obtaining the number of erase and write times of the first storage block and the second storage block; Divide the portion of the first storage block and the second storage block with a relatively small number of erasure times into a new first storage block, and divide the portion with a relatively large number of erasure times into a new second storage block, wherein the upper limit of the number of erasure times of the new first storage block is the same as the first preset upper limit of the number of erasure times, and the upper limit of the number of erasure times of the new second storage block is the same as the second preset upper limit of the number of erasure times; Transferring the first group data and the second group data to the new first storage block and the new second storage block respectively; Determining the number of sub-erase and write times of each sub-block portion in the first storage block includes: the first storage block includes N sub-block portions, and the number of sub-erase and write times of each sub-block portion are K1, K2, ..., K N , the sub-block portion includes the 1st sub-block portion to the Nth sub-block portion; The sub-block portion whose sub-erase times reaches the first preset upper limit of erase times is determined as a discarded sub-block portion, including: if the sub-erase times K of the i-th sub-block portion is i When the first preset upper limit of erasure times K is reached, the i-th sub-block portion is determined as a discarded sub-block portion, where i is less than or equal to N and greater than or equal to 1; According to the proportion of the abandoned sub-block part in the first storage block, judging whether the erasure number of the first storage block reaches the first preset upper limit of the erasure number, including: the number of the abandoned sub-block parts is n, and the proportion of the abandoned sub-block parts in the first storage block is n / N, when n / N is greater than a set proportion threshold value P, it is judged that the erasure number of the first storage block reaches the first preset upper limit of the erasure number, and when n / N is less than or equal to the set proportion threshold value P, it is judged that the erasure number of the first storage block does not reach the first preset upper limit of the erasure number; If the number of erase and write times of the first storage block reaches the first preset upper limit of erase and write times, the portion of the second storage block whose number of erase and write times is less than the first preset upper limit of erase and write times is determined as the regenerated first storage block, and the upper limit of the number of erase and write times of the regenerated first storage block is the same as the first preset upper limit of erase and write times; the newly written first grouped data is stored in the regenerated first storage block.

3. The interactive sensing data acquisition and storage method based on BGA SSD according to claim 1 is characterized in that: In S103, after the step of obtaining a plurality of group data, the method further includes: If the importance level of the packet data is higher than a first preset threshold, encrypt the corresponding packet data using an RSA algorithm in an asymmetric encryption algorithm to obtain highly encrypted packet data; When the importance level of the packet data is lower than a second preset threshold, the corresponding packet data is not encrypted to obtain unencrypted packet data; The AES algorithm in the symmetric encryption algorithm is adopted to encrypt the packet data that does not belong to the high-encryption packet data and the unencrypted packet data among the multiple packet data to obtain low-encryption packet data.

4. The method for collecting and storing interactive sensing data based on BGA SSD according to claim 2, characterized in that: After the step of obtaining the number of erasure times of the first storage block and the second storage block, the method further includes: dividing the portion of the first storage block and the second storage block with a relatively small number of erasure times into a new first storage block, and dividing the portion with a relatively large number of erasure times into a new second storage block, wherein the upper limit of the number of erasure times of the new first storage block is the same as the first preset upper limit of the number of erasure times, and the upper limit of the number of erasure times of the new second storage block is the same as the second preset upper limit of the number of erasure times; The first group data and the second group data are transferred to the new first storage block and the new second storage block respectively.

5. The interactive sensing data acquisition and storage method based on BGA SSD according to claim 1 is characterized in that: The method for moving the plurality of grouped data from the data cache block of the storage server to the storage block of the fixed hard disk based on the moving instruction is: Obtain storage space occupancy values ​​of multiple grouped data in the data cache block, select a corresponding transfer path based on the storage space occupancy value, match the transfer path to the storage address of the storage block, and form a storage list with a data list; based on the configured transfer path, transfer the multiple grouped data from the data cache block to the storage block of the fixed hard disk; At the same time, the real-time storage space of the storage block is calculated based on the original storage space value of the storage block and the storage space occupation value of all the multiple grouped data in each transfer process.

6. The interactive sensing data acquisition and storage method based on BGA SSD according to claim 5 is characterized in that: During the transfer process, the control module obtains the characteristic code of each plurality of grouped data based on the correspondence between the storage list and the data list; and determines whether the transfer task is transferred to the storage unit by identifying the characteristic code of each plurality of grouped data.

7. The interactive sensing data acquisition and storage method based on BGA SSD according to claim 2 is characterized in that: After storing the newly written first group data in the regenerated first storage block, the method further comprises: Obtaining the used capacity, remaining capacity, usage time, number of bad blocks and number of erase / write times, and determining a life prediction value of the solid-state drive based on the used capacity, remaining capacity, usage time, number of bad blocks and number of erase / write times of the plurality of storage blocks; When the predicted life value is lower than a preset life threshold, a prompt message is issued; the prompt message is used to prompt the user to back up data.

8. The interactive sensing data acquisition and storage method based on BGA SSD according to claim 7 is characterized in that: The determining of the life prediction value of the solid state drive based on the used capacity, remaining capacity and number of bad blocks of the plurality of storage blocks specifically includes: A first life value is determined based on the used capacity, remaining capacity and usage time of the multiple storage blocks; a second life value is determined based on the number of bad blocks, the number of erase and write times and usage time of the multiple storage blocks; and a life prediction value of the solid state drive is determined based on the first life value and the second life value.

Citation Information

Patent Citations

  • Data processing method, storage device and electronic device

    CN105550122A

  • Space-time big data storage method and system based on distributed technology

    CN116382596A

  • Solid state disk service life expiration processing method, device and equipment and medium

    CN116521482A

  • Data storage management method of solid state disk and solid state disk management device

    CN117742618A

Cited By

  • Storage equipment monitoring device and monitoring method thereof

    CN120670253A