A detection method and system applied to flash intelligent analysis and detection, an intelligent terminal and a computer readable storage medium

By dynamically adjusting storage processing parameters and methods based on the ratio of the data to be stored to the remaining memory size, the problem of storage intelligence in existing flash drives is solved, thus improving the storage intelligence and efficiency of flash drives.

CN120085806BActive Publication Date: 2025-11-18SHENZHEN DOUDAN TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510154298.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-12
Publication Date
2025-11-18
Estimated Expiration
2045-02-12

AI Technical Summary

Technical Problem

Current flash drive storage processing is relatively mechanical and lacks intelligence. It is difficult to dynamically adjust storage processing parameters based on the actual file size and the remaining available memory, resulting in low storage efficiency.

Method used

By obtaining the memory size of the data to be stored and the remaining available memory size of the Flash memory module, a ratio is calculated, and the storage processing parameters are dynamically adjusted according to the ratio. This includes using the first storage processing parameter when the ratio is less than or equal to a first threshold, using the second storage processing parameter when the ratio is greater than the first threshold but less than a second threshold, and generating a prompt message when the ratio is greater than or equal to the second threshold, indicating that the data cannot be stored.

Benefits of technology

It enables dynamic adjustment of storage processing parameters based on the relationship between the actual file size and the remaining available memory, thereby improving the storage intelligence and efficiency of the flash drive.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120085806B_ABST
    Figure CN120085806B_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a detection method and system applied to Flash intelligent analysis and detection, an intelligent terminal and a computer readable storage medium. The method comprises the following steps: obtaining to-be-stored data, and determining the memory size of the to-be-stored data; determining the first residual available memory size of a Flash memory module; determining the ratio between the memory size and the first residual available memory size; when the ratio is less than or equal to a first threshold value, determining a first storage processing parameter according to the ratio, and storing the to-be-stored data according to the first storage processing parameter; the value range of the first threshold value is 0-1; when the ratio is greater than the first threshold value and less than a second threshold value, determining a second storage processing parameter according to the ratio, and storing the to-be-stored data according to the second storage processing parameter; the second threshold value is greater than the first threshold value; when the ratio is greater than or equal to the second threshold value, a prompt information is generated to prompt the user that the to-be-stored data cannot be stored, so that the storage intelligence can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of storage, in particular to a detection method and system applied to intelligent analysis and detection of Flash, an intelligent terminal and a computer readable storage medium. BACKGROUND

[0002] The Flash chip is also called Flash disk or Flash module, which can be considered as a kind of mobile storage product. At present, it can be mainly used for storing data files in any format. Because it is convenient to carry, it is also known as a personal "data mobile center". At present, the storage process of the Flash disk is relatively mechanical, and therefore, how to improve the storage intelligence of the Flash disk needs to be solved urgently. SUMMARY

[0003] The embodiments of the present application provide a detection method and system applied to intelligent analysis and detection of Flash, an intelligent terminal and a computer readable storage medium, which can improve the storage intelligence of the Flash disk.

[0004] In a first aspect, the embodiments of the present application provide a detection method applied to intelligent analysis and detection of Flash, which is applied to an intelligent terminal including a Flash module. The method comprises the following steps.

[0005] Obtaining to-be-stored data and determining a memory size of the to-be-stored data;

[0006] Determining a first remaining available memory size of the Flash module;

[0007] Determining a ratio between the memory size and the first remaining available memory size;

[0008] When the ratio is less than or equal to a first threshold value, determining a first storage processing parameter according to the ratio and storing the to-be-stored data according to the first storage processing parameter; the first threshold value is in a range of 0-1;

[0009] When the ratio is greater than the first threshold value and less than a second threshold value, determining a second storage processing parameter according to the ratio and storing the to-be-stored data according to the second storage processing parameter; the second threshold value is greater than the first threshold value;

[0010] When the ratio is greater than or equal to the second threshold value, generating a prompt information to prompt that the to-be-stored data cannot be stored.

[0011] In a second aspect, the embodiments of the present application provide a detection system applied to Flash intelligent analysis and detection, applied to an intelligent terminal, the intelligent terminal comprising a Flash memory module, and the system comprising an acquisition unit, a determination unit and a generation unit, wherein

[0012] The acquisition unit is configured to acquire to-be-stored data and determine a memory size of the to-be-stored data.

[0013] The determination unit is configured to determine a first remaining available memory size of the Flash memory module, determine a ratio between the memory size and the first remaining available memory size, when the ratio is less than or equal to a first threshold value, determine a first storage processing parameter according to the ratio, and store the to-be-stored data according to the first storage processing parameter; the first threshold value ranges from 0 to 1; when the ratio is greater than the first threshold value and less than a second threshold value, determine a second storage processing parameter according to the ratio, and store the to-be-stored data according to the second storage processing parameter; the second threshold value is greater than the first threshold value.

[0014] The generation unit is configured to, when the ratio is greater than or equal to the second threshold value, generate a prompt information to prompt a user that the to-be-stored data cannot be stored.

[0015] In a third aspect, the embodiments of the present application provide an intelligent terminal, comprising a processor, a memory, a communication interface and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs comprise instructions for executing the steps in the first aspect of the embodiments of the present application.

[0016] In a fourth aspect, the embodiments of the present application provide a computer readable storage medium, wherein the computer readable storage medium stores a computer program for electronic data exchange, and the computer program causes a computer to execute some or all of the steps described in the first aspect of the embodiments of the present application.

[0017] In a fifth aspect, the embodiments of the present application provide a computer program product, comprising a non-transitory computer readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiments of the present application. The computer program product can be a software installation package.

[0018] The embodiments of the present application have the following beneficial effects:

[0019] It can be seen that the detection method, system, intelligent terminal and computer readable storage medium applied to Flash intelligent analysis detection described in the embodiments of the application are applied to an intelligent terminal, the intelligent terminal includes a Flash memory module, obtains to-be-stored data, determines a memory size of the to-be-stored data, determines a first remaining available memory size of the Flash memory module, determines a ratio between the memory size and the first remaining available memory size, when the ratio is less than or equal to a first threshold value, determines a first storage processing parameter according to the ratio, and stores the to-be-stored data according to the first storage processing parameter; the first threshold value is in a range of 0-1, when the ratio is greater than the first threshold value and less than a second threshold value, determines a second storage processing parameter according to the ratio, and stores the to-be-stored data according to the second storage processing parameter; the second threshold value is greater than the first threshold value, and when the ratio is greater than or equal to the second threshold value, a prompt information is generated to prompt a user that the to-be-stored data cannot be stored, that is, the corresponding storage processing parameter can be dynamically adjusted based on the relationship between the actual file size and the remaining available memory size, so that the storage processing corresponds to the actual situation, thereby the data storage efficiency can be ensured, and the intelligent storage of the flash disk can be improved. BRIEF DESCRIPTION OF DRAWINGS

[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0021] Figure 1A is a flow diagram of a detection method applied to Flash intelligent analysis detection provided by an embodiment of the present application;

[0022] Figure 1B is a structural diagram of an intelligent terminal provided by an embodiment of the present application;

[0023] Figure 1C is a scene demonstration diagram of a detection method applied to Flash intelligent analysis detection provided by an embodiment of the present application;

[0024] Figure 1D is another scene demonstration diagram of a detection method applied to Flash intelligent analysis detection provided by an embodiment of the present application;

[0025] Figure 2 is a structural diagram of an intelligent terminal provided by an embodiment of the present application;

[0026] Figure 3is a functional unit composition block diagram of a detection system applied to Flash intelligent analysis and detection provided by an embodiment of the present application. DETAILED DESCRIPTION

[0027] In order for those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.

[0028] The terms "first", "second", and the like in the specification and claims of the present application and the above-described drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but can optionally include steps or units not listed or can optionally include other steps or units inherent to the process, method, product or device.

[0029] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily all refer to the same embodiment, nor is it necessarily mutually exclusive of other embodiments. It is explicitly and implicitly understood that the embodiments described herein can be combined with other embodiments.

[0030] In the embodiments of the present application, the intelligent terminal involved can be a device with communication capability. The intelligent terminal can include various handheld devices with wireless communication functions, smart home devices, Internet of Things devices, vehicle-mounted devices (such as vehicle recorders, in-vehicle cameras, and vehicle-mounted speakers), wearable devices (such as smart glasses, smart bracelets, and smart watches), computing devices, or other processing devices connected to wireless modems, and various forms of user equipment (User Equipment, UE), mobile stations (Mobile Station, MS), terminal devices, and the like. The first device can also be any of the above intelligent terminals.

[0031] The embodiments of the present application will be described in detail below.

[0032] Please refer to Figure 1A , Figure 1AThis is a flowchart illustrating a detection method for Flash intelligent analysis and detection provided in an embodiment of this application. As shown in the figure, it is applied to a smart terminal, which includes a Flash memory module. The detection method for Flash intelligent analysis and detection includes:

[0033] 101. Obtain the data to be stored and determine the memory size of the data to be stored.

[0034] In the embodiments of this application, such as Figure 1B As shown, the smart terminal may include a Flash memory module. The data to be stored may come from the smart terminal itself or from a first device, which can be understood as an external device.

[0035] In practice, the data to be stored can come from another storage module in the smart terminal, and the data in that other storage module can be copied to the Flash memory module. For example, Figure 1C As shown, the smart terminal may include a first storage module and a Flash memory module. The first storage module contains data to be stored, and the data to be stored in the first storage module can be copied to the Flash memory module.

[0036] In a practical implementation, the data to be stored can also come from the first device, in which case the data to be stored in the first device can be copied to the Flash memory module. For example, Figure 1D As shown, the smart terminal may include a Flash memory module. If the first device and the smart terminal establish a communication connection, the data to be stored in the first device can be copied into the Flash memory module.

[0037] The data to be stored may include at least one of the following: images, videos, programs, compressed files, links, text, etc., without limitation.

[0038] In practice, the data to be stored can be obtained and the memory size of the data to be stored can be determined. Based on different memory sizes, different storage strategies can be selected, thereby improving the intelligence of data storage.

[0039] 102. Determine the first remaining available memory size of the Flash memory module.

[0040] In this embodiment of the application, the first remaining available memory size of the Flash memory module can also be detected. The first remaining available memory size can be understood as the storage space that the Flash memory module can use to store data.

[0041] 103. Determine the ratio between the memory size and the first remaining available memory size.

[0042] In practice, the ratio between the memory size and the first remaining available memory size can be determined, and the ratio = memory size / first remaining available memory size.

[0043] 104. When the ratio is less than or equal to the first threshold, a first storage processing parameter is determined based on the ratio, and the data to be stored is stored based on the first storage processing parameter; the value range of the first threshold is 0 to 1.

[0044] The first threshold value ranges from 0 to 1.

[0045] The first storage processing parameter may include at least one of the following: storage method, storage location, storage range, storage rate, etc., which are not limited here.

[0046] In practice, when the ratio is less than or equal to the first threshold, it indicates that the storage space is sufficient. The first storage processing parameter can then be determined based on the ratio. For example, a pre-defined mapping relationship between the ratio and the storage processing parameter can be stored in advance. Then, the first storage processing parameter corresponding to the ratio between the memory size and the first remaining available memory size can be determined based on this mapping relationship. Next, the data to be stored is stored according to the first storage processing parameter. That is, the corresponding storage processing parameter can be dynamically adjusted based on the relationship between the actual file size and the remaining available memory size, so that the storage processing corresponds to the actual situation, thereby ensuring data storage efficiency.

[0047] In some possible examples, step 104 above, determining the first storage processing parameter based on the ratio, may include the following steps:

[0048] Determine the first hardware environment parameters, the first software environment parameters, and the first physical environment parameters of the Flash memory module;

[0049] Determine the first reference storage processing parameters corresponding to the first hardware environment parameters;

[0050] Determine the first adjustment parameter corresponding to the first software environment parameter;

[0051] Determine the first fine-tuning parameter corresponding to the first physical environment parameter;

[0052] The first reference storage processing parameter is adjusted according to the first adjustment parameter and the first fine-tuning parameter to obtain the first storage processing parameter.

[0053] The first hardware environment parameter may include at least one of the following: the model of the Flash memory module, the configuration parameters of the Flash memory module, the processor parameters of the smart terminal, etc., which are not limited here.

[0054] The first software environment parameters may include at least one of the following: operating system parameters, network parameters, system smoothness, system stability, etc., which are not limited here.

[0055] The first physical environment parameter may include at least one of the following: the temperature of the flash memory module, the usage time of the flash memory module, the humidity of the flash memory module, the magnetic field parameters of the flash memory module, etc., which are not limited here.

[0056] In specific implementation, the first hardware environment parameters, first software environment parameters, and first physical environment parameters of the Flash memory module can be determined. Furthermore, a pre-stored mapping relationship between the hardware environment parameters and storage processing parameters can be established. Since the first hardware environment parameters of the Flash memory module reflect its performance to a certain extent, and the performance of the Flash memory module determines its storage processing effect to a certain degree, the first reference storage processing parameters corresponding to the first hardware environment parameters can be determined based on this mapping relationship. The software environment parameters also have a certain impact on the storage effect; therefore, a pre-stored mapping relationship between the software environment parameters and adjustment parameters can be established. Thus, the first reference storage processing parameters corresponding to the first hardware environment parameters can be determined based on this mapping relationship. The software environment parameters correspond to the first adjustment parameters. In addition, the physical environment parameters may also affect the storage effect. Therefore, based on the mapping relationship between the physical environment parameters and the fine-tuning parameters, the first fine-tuning parameter corresponding to the first physical environment parameter can be determined. Finally, the first reference storage processing parameter can be adjusted according to the first adjustment parameter and the first fine-tuning parameter to obtain the first storage processing parameter, that is, the first storage processing parameter = (1 + first adjustment parameter) * (1 + first fine-tuning parameter) * first reference storage processing parameter. In this way, the corresponding storage processing parameters can be deeply adapted to the actual performance, software environment and physical environment of the flash memory module, thereby ensuring that the storage effect is deeply adapted to the actual situation and helping to improve the intelligence of flash drive storage.

[0057] The first adjustment parameter and the first fine-tuning parameter can both be preset or set by system default. The value range of the first adjustment parameter can be -0.1 to 0.1, and the value range of the first fine-tuning parameter can be -0.02 to 0.02.

[0058] 105. When the ratio is greater than the first threshold and less than the second threshold, a second storage processing parameter is determined based on the ratio, and the data to be stored is stored based on the second storage processing parameter; the second threshold is greater than the first threshold.

[0059] The second storage processing parameter may include at least one of the following: storage method, storage location, storage range, storage rate, etc., which are not limited here.

[0060] Among them, the second threshold is greater than the first threshold. The second threshold may be greater than 1, or it may be less than 1, or it may be equal to 1.

[0061] In this embodiment of the application, when the ratio is greater than the first threshold and less than the second threshold, it indicates that the memory required for the data to be stored is large, and the Flash storage module needs to be compressed accordingly to meet the storage requirements of the storage module.

[0062] Furthermore, the second storage processing parameters can be determined based on the ratio, and the data to be stored can be stored according to the second storage processing parameters. In this way, when the memory required for the data to be stored is large, the Flash storage module can also be compressed accordingly to meet the storage requirements of the storage module, thereby improving the intelligence of flash drive storage.

[0063] In some possible examples, step 105 above, determining the second storage processing parameter based on the ratio, may include the following steps:

[0064] Determine the first deviation between the ratio and the first threshold;

[0065] Determine the second deviation between the ratio and the second threshold;

[0066] The second storage processing parameters are determined based on the first deviation and the second deviation.

[0067] In practice, a first deviation between the ratio and a first threshold can be determined, i.e., first deviation = (ratio - first threshold) / first threshold. Correspondingly, a second deviation between the ratio and a second threshold can also be determined, i.e., second deviation = (second threshold - ratio) / second threshold. Then, a second storage processing parameter is determined based on the first and second deviations. The first and second deviations reflect the relationship between the actual file size and the remaining available memory size. That is, the corresponding storage processing parameters can be dynamically adjusted based on the relationship between the actual file size and the remaining available memory size, so that the storage processing corresponds to the actual situation, thereby ensuring data storage efficiency.

[0068] In some possible examples, the above steps, determining the second storage processing parameter based on the first deviation and the second deviation, may include the following steps:

[0069] When the first deviation is greater than the second deviation, a first difference between the memory size and the first remaining available memory size is determined;

[0070] The second reference storage processing parameters are determined based on the first difference.

[0071] The first compression parameter of the Flash memory module is determined based on the first difference.

[0072] The Flash memory module is compressed according to the first compression parameters to obtain the second remaining available memory size;

[0073] Determine a third deviation between the first remaining available memory size and the second remaining available memory size;

[0074] The second reference storage processing parameter is adjusted according to the third deviation to obtain the second storage processing parameter.

[0075] The second reference storage processing parameters may include at least one of the following: storage method, storage location, storage range, storage rate, etc., which are not limited here.

[0076] The first compression parameter may include at least one of the following: compression object, compression algorithm type, algorithm control parameters corresponding to the compression algorithm, file deletion parameters, file shredding parameters, file formatting parameters, etc., which are not limited here.

[0077] Different compression algorithms correspond to different compression algorithm types, and the corresponding compression algorithm can be called based on the compression algorithm type.

[0078] In this context, a compressed object can be understood as an object that can or needs to be compressed.

[0079] The algorithm control parameters corresponding to the compression algorithm are used to control the compression effect. The compression effect may include at least one of the following: compression ratio, lossy compression, lossless compression, compression speed, compression time, etc., which are not limited here.

[0080] The file deletion parameters may include at least one of the following: the object to be deleted, the time range for deletion, the location to be deleted, the degree of deletion, etc., which are not limited here.

[0081] The file shredding parameters may include at least one of the following: shredding object, shredding time range, shredding location, shredding degree, etc., which are not limited here.

[0082] The file formatting parameters may include at least one of the following: formatting object, formatting time range, formatting position, formatting degree, etc., which are not limited here.

[0083] In practical implementation, when the first deviation is greater than the second deviation, it indicates that the memory required for the data to be stored is large, and the Flash storage module needs to be compressed accordingly to meet the storage requirements of the module. Therefore, a first difference between the memory size and the first remaining available memory size can be determined: first difference = memory size - first remaining available memory size. A pre-stored mapping relationship between the difference and storage processing parameters can be used to determine the second reference storage processing parameters corresponding to the first difference. Similarly, a pre-stored mapping relationship between the difference and compression parameters can be used to determine the first compression parameters of the Flash memory module corresponding to the first difference. Finally, the Flash memory module is compressed according to the first compression parameters to obtain the second remaining available memory size.

[0084] Next, a third deviation between the first and second remaining available memory sizes can be determined, i.e., the third deviation = (first remaining available memory size - second remaining available memory size) / second remaining available memory size. A pre-defined mapping relationship between the deviation and optimization coefficients can also be stored. Based on this mapping relationship, a first optimization coefficient corresponding to the third deviation can be determined. Then, the second reference storage processing parameters are adjusted according to this first optimization coefficient to obtain the second storage processing parameters, i.e., the second storage processing parameters = (1 + first optimization coefficient) * second reference storage processing parameters. Thus, firstly, when the memory required for the data to be stored is large, the Flash storage module is compressed accordingly to meet the storage requirements of the module. Secondly, the corresponding storage processing parameters and compression processing can be determined based on the difference between the actual file size and the remaining available memory size. The storage processing parameters are then deeply optimized based on the differences before and after compression, ensuring that the storage processing corresponds to the actual situation. This guarantees data storage efficiency, achieves dynamic and flexible storage effects, and helps to significantly improve the storage intelligence of the flash drive.

[0085] In some possible examples, the following steps may also be included:

[0086] When the first deviation is less than or equal to the second deviation, a fourth deviation between the first remaining available memory size and the memory size is detected.

[0087] When the fourth deviation is greater than the preset deviation, the second storage processing parameter corresponding to the fourth deviation is determined.

[0088] The preset deviation can be set in advance or set by the system default.

[0089] The preset deviation can be an empirical value or it can be related to environmental parameters. For example, the preset deviation can be related to at least one of the first hardware environmental parameters, the first software environmental parameters, and the first physical environmental parameters of the Flash module.

[0090] In specific implementation, when the first deviation is less than or equal to the second deviation, it indicates that the memory required for the data to be stored is large, and the Flash storage module may need to be compressed to meet the storage requirements. A fourth deviation is detected between the first remaining available memory size and the memory size, where the fourth deviation = (first remaining available memory size - memory size) / memory size. When the fourth deviation is greater than a preset deviation, it indicates that although the memory required for the data to be stored is large, the Flash storage module does not need to be compressed to meet the storage requirements. This means that a preset mapping relationship between deviations and storage processing parameters can be pre-stored. Based on this mapping relationship, a second storage processing parameter corresponding to the fourth deviation can be determined. Thus, based on the relationship between the actual file size and the remaining available memory size, the corresponding storage processing parameters can be dynamically adjusted, ensuring that the storage processing corresponds to the actual situation. This guarantees data storage efficiency and improves the intelligence of the flash drive storage.

[0091] In some possible examples, the following steps may also be included:

[0092] When the fourth deviation is less than or equal to the preset deviation, a third reference storage processing parameter corresponding to the fourth deviation is determined;

[0093] The second compression parameter of the Flash memory module is determined based on the fourth deviation.

[0094] The Flash memory module is compressed according to the second compression parameters to obtain the third remaining available memory size;

[0095] Determine a fifth deviation between the first remaining available memory size and the third remaining available memory size;

[0096] The third reference storage processing parameter is adjusted based on the fifth deviation to obtain the second storage processing parameter.

[0097] The third reference storage processing parameters may include at least one of the following: storage method, storage location, storage range, storage rate, etc., which are not limited here.

[0098] The second compression parameter may include at least one of the following: compression object, compression algorithm type, algorithm control parameters corresponding to the compression algorithm, file deletion parameters, file shredding parameters, file formatting parameters, etc., which are not limited here.

[0099] Different compression algorithms correspond to different compression algorithm types, and the corresponding compression algorithm can be called based on the compression algorithm type.

[0100] In this context, a compression object can be understood as an object that can or needs to be compressed. There can be one or more compression objects.

[0101] The algorithm control parameters corresponding to the compression algorithm are used to control the compression effect. The compression effect may include at least one of the following: compression ratio, lossy compression, lossless compression, compression speed, compression time, etc., which are not limited here.

[0102] The file deletion parameters may include at least one of the following: the object to be deleted, the time range for deletion, the location to be deleted, the degree of deletion, etc., which are not limited here.

[0103] The file shredding parameters may include at least one of the following: shredding object, shredding time range, shredding location, shredding degree, etc., which are not limited here.

[0104] The file formatting parameters may include at least one of the following: formatting object, formatting time range, formatting position, formatting degree, etc., which are not limited here.

[0105] In practice, when the fourth deviation is less than or equal to the preset deviation, it indicates that the memory required for the data to be stored is large, and the Flash storage module needs to be compressed accordingly to meet the storage requirements of the module to be stored. That is, the preset mapping relationship between the deviation and the storage processing parameters can be stored in advance, and then the third storage processing parameter corresponding to the fourth deviation can be determined based on the mapping relationship.

[0106] In a specific implementation, a pre-stored mapping relationship between the preset deviation and compression parameters can be used to determine the second compression parameters of the Flash memory module corresponding to the fourth deviation based on the mapping relationship. Then, the Flash memory module can be compressed according to the second compression parameters to obtain the third remaining available memory size.

[0107] Next, a fifth deviation between the first and third remaining available memory sizes can be determined, i.e., fifth deviation = (first remaining available memory size - third remaining available memory size) / third remaining available memory size. A pre-defined mapping relationship between deviations and optimization coefficients can also be stored. Based on this mapping relationship, a second optimization coefficient corresponding to the fifth deviation can be determined. Then, the third reference storage processing parameter is adjusted according to this second optimization coefficient to obtain the third storage processing parameter, i.e., third storage processing parameter = (1 + second optimization coefficient) * third reference storage processing parameter. Thus, firstly, if the memory required for the data to be stored is large, the Flash storage module needs to be compressed accordingly to meet the storage requirements. Secondly, the corresponding storage processing parameters and compression processing can be determined based on the difference between the actual file size and the remaining available memory size. Based on the difference before and after compression, the storage processing parameters are deeply optimized to ensure that the storage processing corresponds to the actual situation. This guarantees data storage efficiency, achieves dynamic and flexible storage effects, and helps to significantly improve the storage intelligence of the flash drive.

[0108] 106. When the ratio is greater than or equal to the second threshold, a prompt message is generated to inform the user that the data to be stored cannot be stored.

[0109] In practice, when the ratio is greater than or equal to the second threshold, it indicates that the memory required for the data to be stored is very large. Even if the Flash storage module is compressed accordingly, it cannot meet the storage requirements. Therefore, a prompt message is generated to inform the user that the data to be stored cannot be stored, thereby improving the intelligence of flash drive storage.

[0110] The form of the prompt message can include at least one of the following: text prompts, voice prompts, vibration prompts, etc., without limitation. In specific implementation, when the memory required to store the data is very large, and even with appropriate compression of the Flash storage module, the storage requirements cannot be met, the user can be promptly reminded, thereby ensuring data storage efficiency and improving the intelligence of flash drive storage.

[0111] In practice, when the Flash module is powered off, the storage progress and location of the data to be stored can be marked. After the Flash module is powered on, the storage location is quickly locked, and then the data to be stored continues to be stored. This ensures data storage efficiency and improves the intelligence of flash drive storage.

[0112] As can be seen, the detection method for Flash intelligent analysis and detection described in this application embodiment is applied to a smart terminal. The smart terminal includes a Flash memory module. It acquires data to be stored, determines the memory size of the data to be stored, determines the first remaining available memory size of the Flash memory module, and determines the ratio between the memory size and the first remaining available memory size. When the ratio is less than or equal to a first threshold, it determines a first storage processing parameter based on the ratio and stores the data to be stored according to the first storage processing parameter. The first threshold ranges from 0 to 1. When the ratio is greater than the first threshold and less than a second threshold, it determines a second storage processing parameter based on the ratio and stores the data to be stored according to the second storage processing parameter. When the second threshold is greater than the first threshold, and the ratio is greater than or equal to the second threshold, it generates a prompt message to inform the user that the data to be stored cannot be stored. This means that the corresponding storage processing parameters can be dynamically adjusted based on the relationship between the actual file size and the remaining available memory size, so that the storage processing corresponds to the actual situation, thereby ensuring data storage efficiency and improving the intelligence of flash drive storage.

[0113] Consistent with the above embodiments, please refer to Figure 2 , Figure 2 This is a schematic diagram of the structure of a smart terminal provided in an embodiment of this application. As shown in the figure, the smart terminal includes a processor, a memory, a communication interface, and one or more programs. The one or more programs are stored in the memory and configured to be executed by the processor. In this embodiment, the smart terminal includes a Flash memory module, and the programs include instructions for performing the following steps:

[0114] Obtain the data to be stored and determine the memory size of the data to be stored;

[0115] Determine the first remaining available memory size of the Flash memory module;

[0116] Determine the ratio between the memory size and the first remaining available memory size;

[0117] When the ratio is less than or equal to a first threshold, a first storage processing parameter is determined based on the ratio, and the data to be stored is stored based on the first storage processing parameter; the value range of the first threshold is 0 to 1.

[0118] When the ratio is greater than the first threshold and less than the second threshold, a second storage processing parameter is determined based on the ratio, and the data to be stored is stored based on the second storage processing parameter; the second threshold is greater than the first threshold.

[0119] When the ratio is greater than or equal to the second threshold, a prompt message is generated to inform the user that the data to be stored cannot be stored.

[0120] In some possible examples, regarding the determination of the first storage processing parameter based on the ratio, the above procedure includes instructions for performing the following steps:

[0121] Determine the first hardware environment parameters, the first software environment parameters, and the first physical environment parameters of the Flash memory module;

[0122] Determine the first reference storage processing parameters corresponding to the first hardware environment parameters;

[0123] Determine the first adjustment parameter corresponding to the first software environment parameter;

[0124] Determine the first fine-tuning parameter corresponding to the first physical environment parameter;

[0125] The first reference storage processing parameter is adjusted according to the first adjustment parameter and the first fine-tuning parameter to obtain the first storage processing parameter.

[0126] In some possible examples, regarding the determination of the second storage processing parameter based on the ratio, the above procedure includes instructions for performing the following steps:

[0127] Determine the first deviation between the ratio and the first threshold;

[0128] Determine the second deviation between the ratio and the second threshold;

[0129] The second storage processing parameters are determined based on the first deviation and the second deviation.

[0130] In some possible examples, regarding the determination of the second storage processing parameter based on the first deviation and the second deviation, the above procedure includes instructions for performing the following steps:

[0131] When the first deviation is greater than the second deviation, a first difference between the memory size and the first remaining available memory size is determined;

[0132] The second reference storage processing parameters are determined based on the first difference.

[0133] The first compression parameter of the Flash memory module is determined based on the first difference.

[0134] The Flash memory module is compressed according to the first compression parameters to obtain the second remaining available memory size;

[0135] Determine a third deviation between the first remaining available memory size and the second remaining available memory size;

[0136] The second reference storage processing parameter is adjusted according to the third deviation to obtain the second storage processing parameter.

[0137] In some possible examples, the above procedure includes instructions for performing the following steps:

[0138] When the first deviation is less than or equal to the second deviation, the first remaining available memory size and the memory size are detected. When the fourth deviation is greater than a preset deviation, the second storage processing parameter corresponding to the fourth deviation is determined.

[0139] In some possible examples, the above procedure includes instructions for performing the following steps:

[0140] When the fourth deviation is less than or equal to the preset deviation, a third reference storage processing parameter corresponding to the fourth deviation is determined;

[0141] The second compression parameter of the Flash memory module is determined based on the fourth deviation.

[0142] The Flash memory module is compressed according to the second compression parameters to obtain the third remaining available memory size;

[0143] Determine a fifth deviation between the first remaining available memory size and the third remaining available memory size;

[0144] The third reference storage processing parameter is adjusted based on the fifth deviation to obtain the second storage processing parameter.

[0145] As can be seen, the smart terminal described in this application embodiment includes a Flash memory module. It acquires data to be stored, determines the memory size of the data to be stored, determines the first remaining available memory size of the Flash memory module, and determines the ratio between the memory size and the first remaining available memory size. When the ratio is less than or equal to a first threshold, it determines a first storage processing parameter based on the ratio and stores the data to be stored according to the first storage processing parameter. The first threshold ranges from 0 to 1. When the ratio is greater than the first threshold and less than a second threshold, it determines a second storage processing parameter based on the ratio and stores the data to be stored according to the second storage processing parameter. When the second threshold is greater than the first threshold, and the ratio is greater than or equal to the second threshold, it generates a prompt message to inform the user that the data to be stored cannot be stored. This means that the corresponding storage processing parameters can be dynamically adjusted based on the relationship between the actual file size and the remaining available memory size, ensuring that the storage processing corresponds to the actual situation. This guarantees data storage efficiency and improves the intelligence of the flash drive storage.

[0146] Figure 3 This is a functional unit block diagram of a detection system 300 for Flash intelligent analysis and detection, as described in this application embodiment. The detection system 300 is applied to a smart terminal, which includes a Flash storage module. The detection system 300 includes: an acquisition unit 301, a determination unit 302, and a generation unit 303.

[0147] The acquisition unit 301 is used to acquire the data to be stored and determine the memory size of the data to be stored;

[0148] The determining unit 302 is configured to: determine a first remaining available memory size of the Flash memory module; determine a ratio between the memory size and the first remaining available memory size; when the ratio is less than or equal to a first threshold, determine a first storage processing parameter based on the ratio, and store the data to be stored based on the first storage processing parameter; the first threshold is in the range of 0 to 1; when the ratio is greater than the first threshold and less than a second threshold, determine a second storage processing parameter based on the ratio, and store the data to be stored based on the second storage processing parameter; the second threshold is greater than the first threshold.

[0149] The generation unit 303 is used to generate a prompt message when the ratio is greater than or equal to the second threshold, so as to prompt the user that the data to be stored cannot be stored.

[0150] In some possible examples, in determining the first storage processing parameter based on the ratio, the determining unit 302 is specifically used for:

[0151] Determine the first hardware environment parameters, the first software environment parameters, and the first physical environment parameters of the Flash memory module;

[0152] Determine the first reference storage processing parameters corresponding to the first hardware environment parameters;

[0153] Determine the first adjustment parameter corresponding to the first software environment parameter;

[0154] Determine the first fine-tuning parameter corresponding to the first physical environment parameter;

[0155] The first reference storage processing parameter is adjusted according to the first adjustment parameter and the first fine-tuning parameter to obtain the first storage processing parameter.

[0156] In some possible examples, in determining the second storage processing parameter based on the ratio, the determining unit 302 is specifically used for:

[0157] Determine the first deviation between the ratio and the first threshold;

[0158] Determine the second deviation between the ratio and the second threshold;

[0159] The second storage processing parameters are determined based on the first deviation and the second deviation.

[0160] In some possible examples, in determining the second storage processing parameter based on the first deviation and the second deviation, the determining unit 302 is specifically used for:

[0161] When the first deviation is greater than the second deviation, a first difference between the memory size and the first remaining available memory size is determined;

[0162] The second reference storage processing parameters are determined based on the first difference.

[0163] The first compression parameter of the Flash memory module is determined based on the first difference.

[0164] The Flash memory module is compressed according to the first compression parameters to obtain the second remaining available memory size;

[0165] Determine a third deviation between the first remaining available memory size and the second remaining available memory size;

[0166] The second reference storage processing parameter is adjusted according to the third deviation to obtain the second storage processing parameter.

[0167] In some possible examples, the detection system 300 applied to Flash intelligent analysis detection is also specifically used for:

[0168] When the first deviation is less than or equal to the second deviation, a fourth deviation between the first remaining available memory size and the memory size is detected.

[0169] When the fourth deviation is greater than the preset deviation, the second storage processing parameter corresponding to the fourth deviation is determined.

[0170] In some possible examples, the detection system 300 applied to Flash intelligent analysis detection is also specifically used for:

[0171] When the fourth deviation is less than or equal to the preset deviation, a third reference storage processing parameter corresponding to the fourth deviation is determined;

[0172] The second compression parameter of the Flash memory module is determined based on the fourth deviation.

[0173] The Flash memory module is compressed according to the second compression parameters to obtain the third remaining available memory size;

[0174] Determine a fifth deviation between the first remaining available memory size and the third remaining available memory size;

[0175] The third reference storage processing parameter is adjusted based on the fifth deviation to obtain the second storage processing parameter.

[0176] As can be seen, the detection system for Flash intelligent analysis and detection described in this application embodiment is applied to a smart terminal. The smart terminal includes a Flash memory module, acquires data to be stored, determines the memory size of the data to be stored, determines the first remaining available memory size of the Flash memory module, determines the ratio between the memory size and the first remaining available memory size, and when the ratio is less than or equal to a first threshold, determines a first storage processing parameter based on the ratio, and stores the data to be stored according to the first storage processing parameter. The first threshold ranges from 0 to 1. When the ratio is greater than the first threshold and less than a second threshold, determines a second storage processing parameter based on the ratio, and stores the data to be stored according to the second storage processing parameter. When the second threshold is greater than the first threshold, and the ratio is greater than or equal to the second threshold, a prompt message is generated to inform the user that the data to be stored cannot be stored. That is, the corresponding storage processing parameters can be dynamically adjusted based on the relationship between the actual file size and the remaining available memory size, so that the storage processing corresponds to the actual situation, thereby ensuring data storage efficiency and improving the intelligence of flash drive storage.

[0177] It is understood that the functions of each program module of the detection system applied to Flash intelligent analysis and detection in this embodiment can be specifically implemented according to the methods in the above method embodiments. The specific implementation process can be referred to the relevant descriptions in the above method embodiments, which will not be repeated here.

[0178] This application also provides a computer storage medium storing a computer program for electronic data interchange, which causes a computer to perform some or all of the steps of any of the methods described in the above method embodiments.

[0179] This application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments. This computer program product can be a software installation package.

[0180] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0181] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0182] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical or other forms.

[0183] The units described above 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 this embodiment according to actual needs.

[0184] Furthermore, the functional units in the various embodiments of this application 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.

[0185] If the integrated units described above are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, 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 memory 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 this application. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0186] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0187] The embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A detection method applied to Flash intelligent analysis and detection, characterized in that, Applied to a smart terminal, the smart terminal including a Flash memory module, the method includes: Obtain the data to be stored and determine the memory size of the data to be stored; Determine the first remaining available memory size of the Flash memory module; Determine the ratio between the memory size and the first remaining available memory size; When the ratio is less than or equal to a first threshold, a first storage processing parameter is determined based on the ratio, and the data to be stored is stored based on the first storage processing parameter; the value range of the first threshold is 0 to 1. When the ratio is greater than the first threshold and less than the second threshold, a second storage processing parameter is determined based on the ratio, and the data to be stored is stored based on the second storage processing parameter; the second threshold is greater than the first threshold. When the ratio is greater than or equal to the second threshold, a prompt message is generated to inform the user that the data to be stored cannot be stored. The step of determining the first storage processing parameter based on the ratio includes: Determine the first hardware environment parameters, the first software environment parameters, and the first physical environment parameters of the Flash memory module; Determine the first reference storage processing parameters corresponding to the first hardware environment parameters; Determine the first adjustment parameter corresponding to the first software environment parameter; Determine the first fine-tuning parameter corresponding to the first physical environment parameter; The first reference storage processing parameter is adjusted according to the first adjustment parameter and the first fine-tuning parameter to obtain the first storage processing parameter; The step of determining the second storage processing parameter based on the ratio includes: Determine the first deviation between the ratio and the first threshold; Determine the second deviation between the ratio and the second threshold; The second storage processing parameters are determined based on the first deviation and the second deviation.

2. The method according to claim 1, characterized in that, The step of determining the second storage processing parameter based on the first deviation and the second deviation includes: When the first deviation is greater than the second deviation, a first difference between the memory size and the first remaining available memory size is determined; The second reference storage processing parameters are determined based on the first difference. The first compression parameter of the Flash memory module is determined based on the first difference. The Flash memory module is compressed according to the first compression parameters to obtain the second remaining available memory size; Determine a third deviation between the first remaining available memory size and the second remaining available memory size; The second reference storage processing parameter is adjusted according to the third deviation to obtain the second storage processing parameter.

3. The method according to claim 2, characterized in that, The method further includes: When the first deviation is less than or equal to the second deviation, a fourth deviation between the first remaining available memory size and the memory size is detected. When the fourth deviation is greater than the preset deviation, the second storage processing parameter corresponding to the fourth deviation is determined.

4. The method according to claim 3, characterized in that, The method further includes: When the fourth deviation is less than or equal to the preset deviation, a third reference storage processing parameter corresponding to the fourth deviation is determined; The second compression parameter of the Flash memory module is determined based on the fourth deviation. The Flash memory module is compressed according to the second compression parameters to obtain the third remaining available memory size; Determine a fifth deviation between the first remaining available memory size and the third remaining available memory size; The third reference storage processing parameter is adjusted based on the fifth deviation to obtain the second storage processing parameter.

5. A detection system for Flash intelligent analysis and detection, characterized in that, Applied to smart terminals, the smart terminal includes a Flash memory module, and the system includes: an acquisition unit, a determination unit, and a generation unit, wherein... The acquisition unit is used to acquire the data to be stored and determine the memory size of the data to be stored; The determining unit is configured to: determine a first remaining available memory size of the Flash memory module; determine a ratio between the memory size and the first remaining available memory size; when the ratio is less than or equal to a first threshold, determine a first storage processing parameter based on the ratio, and store the data to be stored based on the first storage processing parameter; the first threshold is in the range of 0 to 1; when the ratio is greater than the first threshold and less than a second threshold, determine a second storage processing parameter based on the ratio, and store the data to be stored based on the second storage processing parameter; the second threshold is greater than the first threshold. The generating unit is configured to generate a prompt message when the ratio is greater than or equal to the second threshold, so as to prompt the user that the data to be stored cannot be stored. Specifically, in determining the first storage processing parameter based on the ratio, the determining unit is used for: Determine the first hardware environment parameters, the first software environment parameters, and the first physical environment parameters of the Flash memory module; Determine the first reference storage processing parameters corresponding to the first hardware environment parameters; Determine the first adjustment parameter corresponding to the first software environment parameter; Determine the first fine-tuning parameter corresponding to the first physical environment parameter; The first reference storage processing parameter is adjusted according to the first adjustment parameter and the first fine-tuning parameter to obtain the first storage processing parameter; The step of determining the second storage processing parameter based on the ratio includes: Determine the first deviation between the ratio and the first threshold; Determine the second deviation between the ratio and the second threshold; The second storage processing parameters are determined based on the first deviation and the second deviation.

6. A smart terminal, characterized in that, The device includes a processor, a memory, a communication interface, and one or more programs, said programs being stored in the memory and configured to be executed by the processor, said programs including instructions for performing the steps of the method as described in any one of claims 1-4.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that is executed by a processor to implement the method of any one of claims 1 to 4.

Citation Information

Patent Citations

  • Memory compressing function enabling method and apparatus for terminal

    CN106557436A