An effective data extraction analysis method and device for a DFLASH structural storage

By using DFLASH-based data storage rules to obtain and format data directories and content, the problem of time-consuming and cumbersome data extraction and analysis in DFLASH structured storage is solved, enabling fast and accurate data filtering.

CN117216123BActive Publication Date: 2025-12-16BEI DOU ZHI LIAN KE JI YOU XIAN GONG SI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311282965.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-28
Publication Date
2025-12-16
Estimated Expiration
2043-09-28

AI Technical Summary

Technical Problem

The DFLASH structured storage contains massive amounts of data and has a unique storage structure, making data extraction and analysis time-consuming and cumbersome, and making it difficult to quickly and accurately find problematic data.

Method used

The data storage rules based on DFLASH acquire and distribute the data directories and content, extract and compare them according to a fixed format, and filter out problematic data.

Benefits of technology

It enables rapid and accurate analysis of problem data in DFLASH, improving the efficiency of data extraction and analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117216123B_ABST
    Figure CN117216123B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of data processing, in particular to an effective data extraction and analysis method and device for DFLASH structural storage, all data of DFLASH to be analyzed is acquired; each data comprises a data directory and data content, the data directory and the data content are dispersedly stored in the DFLASH to be analyzed according to a fixed storage rule; all data in the DFLASH to be analyzed is extracted according to a format corresponding to the data directory and the data content based on the storage rule, and analyzed data is obtained; the analyzed data is compared with correct data, and problem data in the analyzed data is screened out. Therefore, according to the data storage rule of DFLASH, all data in the DFLASH to be analyzed is automatically extracted and analyzed by using a programming script, and efficiency and accuracy are 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 data processing, in particular to an effective data extraction and analysis method and device for DFLASH structural storage. BACKGROUND

[0002] Diagnostic instruments are usually used in vehicle diagnosis and calibration software updating processes. When it is necessary to update calibration software of a vehicle controller, a diagnostic instrument is connected to a diagnostic interface of the vehicle through a communication interface of the diagnostic instrument, such as a SAE J1962 standard interface, and new calibration software is updated to the corresponding controller of the vehicle.

[0003] Since data content stored in a DFLASH of a vehicle controller is large and the storage structure is special, the data is stored in two segments, the beginning part of each segment is the storage of a data ID, the storage order is from top to bottom, and the storage order of data content corresponding to the ID is from bottom to top. Therefore, when analyzing data, it is necessary to find the data ID at the top and the address of the corresponding data storage, and then find the corresponding stored data according to the address. This way of analyzing data is very time-consuming and tedious. SUMMARY

[0004] To overcome the deficiencies in the prior art, the present application provides an effective data extraction and analysis method and device for DFLASH structural storage, which can quickly and accurately analyze problem data in a DFLASH.

[0005] In a first aspect, an effective data extraction and analysis method for DFLASH structural storage is provided, which includes the following steps:

[0006] All data stored in a DFLASH to be analyzed is obtained, wherein each data includes a data directory and data content, and the data directory and the data content are dispersedly stored in the DFLASH to be analyzed according to a fixed storage rule;

[0007] All data in the DFLASH to be analyzed is extracted according to a format corresponding to the data directory and the data content based on the storage rule, and analyzed data is obtained.

[0008] The analyzed data is compared with correct data, and problem data in the analyzed data is screened out.

[0009] In some embodiments, the data directory includes a data ID, a data length, and a data storage address, which are set to have a fixed length.

[0010] In some embodiments, the data directory and the data content are dispersedly stored in the DFLASH to be analyzed according to the following fixed storage rule:

[0011] dividing each sector of the DFLASH to be analyzed into a data directory storage area and a data content storage area;

[0012] for each data stored in the DFLASH to be analyzed, storing the data ID, data length and data storage address of the data in the data directory storage area in order from top to bottom according to the memory address, and storing the data content in the data content storage area in order from bottom to top according to the memory address.

[0013] In some embodiments, after the step of obtaining all data stored in the DFLASH to be analyzed, the method further comprises the following steps:

[0014] saving the obtained all data stored in the DFLASH to be analyzed according to a set first file name and a first storage location.

[0015] In some embodiments, the step of extracting all data in the DFLASH to be analyzed according to the data directory and the data content corresponding format based on the storage rule to obtain the data to be analyzed comprises the following steps:

[0016] extracting all data stored in the DFLASH to be analyzed according to a set first file name and a first storage location;

[0017] obtaining a data ID list of the all data based on the storage rule; wherein the data ID list comprises the data length and data storage address corresponding to each data ID;

[0018] extracting the data content corresponding to each data ID according to the data length with the data storage address as an index;

[0019] taking the extracted data content corresponding to each data ID as the data to be analyzed.

[0020] In some embodiments, after the step of obtaining the data to be analyzed, the method further comprises the following steps:

[0021] saving the data to be analyzed according to a set second file name and a second storage location.

[0022] In some embodiments, the step of comparing the data to be analyzed with correct data to screen out problem data in the data to be analyzed comprises the following steps:

[0023] extracting the data to be analyzed according to a set second file name and a second storage location;

[0024] comparing the data to be analyzed with correct data, if there is a difference between the data to be analyzed and the correct data, taking the corresponding data as problem data and displaying it through an identifier.

[0025] In a second aspect, the embodiments of the present application provide an effective data extraction and analysis device for DFLASH structural storage, the device comprising:

[0026] an acquisition module configured to acquire all data of a DFLASH to be analyzed, wherein each of the data comprises a data directory and data content, and the data directory and the data content are stored in the DFLASH to be analyzed according to a fixed storage rule;

[0027] an extraction module configured to extract all the data in the DFLASH to be analyzed according to a format corresponding to the data directory and the data content based on the storage rule, to obtain data to be analyzed;

[0028] an analysis module configured to compare the data to be analyzed with correct data, and screen out problem data in the data to be analyzed.

[0029] In a third aspect, the embodiments of the present application provide an electronic device, which comprises a processor, a memory and a bus, the memory stores machine readable instructions executable by the processor, when the electronic device is running, the processor and the memory communicate through the bus, and the machine readable instructions are executed by the processor to perform the steps of the effective data extraction and analysis method for DFLASH structural storage according to any one of the first aspect.

[0030] In a fourth aspect, the embodiments of the present application provide a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to perform the steps of the effective data extraction and analysis method for DFLASH structural storage according to any one of the first aspect.

[0031] The effective data extraction and analysis method and device for DFLASH structural storage provided by the present application acquire all data of a DFLASH to be analyzed, wherein each of the data comprises a data directory and data content, and the data directory and the data content are stored in the DFLASH to be analyzed according to a fixed storage rule; all the data in the DFLASH to be analyzed is extracted according to a format corresponding to the data directory and the data content based on the storage rule, to obtain data to be analyzed; and the data to be analyzed is compared with correct data, and problem data in the data to be analyzed is screened out. Thus, according to the data storage rule of DFLASH, all the data in the DFLASH to be analyzed is automatically extracted and analyzed by using a programming script, so that the efficiency and accuracy are improved. BRIEF DESCRIPTION OF DRAWINGS

[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly introduced as follows. It should be understood that the following drawings only show some of the embodiments of the present application, and therefore should not be regarded as a limitation on the scope. For those of ordinary skill in the art, other related drawings can also be obtained without creative labor on the basis of these drawings.

[0033] Figure 1 A flow chart of the effective data extraction analysis method of the DFLASH structural storage according to an embodiment of the present application is shown.

[0034] Figure 2 A flow chart of extracting all data in the DFLASH to be analyzed according to the format corresponding to the data directory and the data content according to the storage rule to obtain data to be analyzed according to an embodiment of the present application is shown.

[0035] Figure 3 A data storage schematic diagram of the data directory storage area in the DFLASH to be analyzed according to an embodiment of the present application is shown.

[0036] Figure 4 A data storage schematic diagram of the data content storage area in the DFLASH to be analyzed according to an embodiment of the present application is shown.

[0037] Figure 5 A schematic diagram of the data to be analyzed according to an embodiment of the present application is shown.

[0038] Figure 6 A schematic diagram of comparing the data to be analyzed with correct data according to an embodiment of the present application is shown.

[0039] Figure 7 A structural schematic diagram of the effective data extraction analysis device of the DFLASH structural storage according to an embodiment of the present application is shown.

[0040] Figure 8 A structural block diagram of the electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0041] To make the purposes, technical solutions, and advantages of the embodiments of the present application clearer, 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. It should be understood that the drawings in the present application serve only the purpose of description and illustration, and do not serve to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in the present application show the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowcharts can be implemented in no particular order, and the steps without logical context relationship can be reversed in order or implemented simultaneously. In addition, one or more other operations can be added to the flowcharts or one or more operations can be removed from the flowcharts under the guidance of the content of the present application.

[0042] In addition, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. Based on the embodiments of 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.

[0043] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the presence of the features declared thereafter, but does not exclude the addition of other features.

[0044] With the rapid development of automotive electronics technology, the functional complexity of vehicles is increasing, and a large number of electronic controllers are widely used in vehicles, such as engine controllers, air conditioning controllers, vehicle body anti-theft controllers, automatic transmission controllers, vehicle body stability control system (DSC) controllers, anti-lock braking system (ABS) controllers, instrument control units, etc., resulting in great challenges for the development of vehicle diagnostic instruments. In particular, when the DFLASH in the controller is erased to a certain number of times, the stored data may be incorrect, so it is necessary to analyze whether the data can still be normally stored after reaching the maximum number of erasures given by the chip manufacturer. However, due to the large amount of data content and special storage structure of the DFLASH structural storage, it is time-consuming and tedious to extract and analyze the data. In view of this, the present application provides an effective data extraction and analysis method, device, electronic equipment, and storage medium for DFLASH structural storage, which can quickly and accurately analyze the problem data in the DFLASH.

[0045] Referring to the drawings of the specification Figure 1 The effective data extraction and analysis method for DFLASH structural storage provided by the embodiments of the present application includes the following steps:

[0046] S1, obtaining all data to be analyzed stored in a DFLASH; wherein each of the data comprises a data directory and data content, and the data directory and the data content are stored in the DFLASH according to a fixed storage rule;

[0047] S2, extracting all data in the DFLASH to be analyzed according to a format corresponding to the data directory and the data content based on the storage rule, to obtain data to be analyzed;

[0048] S3, comparing the data to be analyzed with correct data, and screening out problem data in the data to be analyzed.

[0049] In the embodiments of the present application, the effective data extraction and analysis method of the DFLASH structural storage can run on a terminal device or a server; wherein the terminal device can be a local terminal device, when the effective data extraction and analysis method of the DFLASH structural storage runs on the server, the effective data extraction and analysis method of the DFLASH structural storage can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system at least includes a server and a client device (i.e. a terminal device). Specifically, taking the application to the server as an example, when the effective data extraction and analysis method of the DFLASH structural storage runs on the server, the problem data in the DFLASH can be quickly and accurately analyzed.

[0050] In step S1, the data storage rule of the DFLASH is first described. Generally, a DFLASH chip area is divided into two logical sectors to store data, and each time the vehicle machine hibernates and wakes up, the DOTE, CAL and other data will be written into an unwritten logical sector (assuming the first logical sector), until the first logical sector is full, the second logical sector will be erased, and then the remaining data will be written into the second logical sector, if the second logical sector is full, the first logical sector will be erased for data writing, and so on, the DFLASH storage area will repeatedly perform erase and write; for example, the address range of the first logical sector is 0000-3800, the address range of the second logical sector is 3800-7000, and the memory size of each sector is 14K;

[0051] And the storage structure of the first logical sector and the second logical sector is same. Specifically, each sector of the DFLASH is divided into a data directory storage area and a data content storage area, for example, the former half is the data directory storage area, containing a data directory composed of data ID, data length, data storage address and other information; the latter half is the data content storage area, containing data content. When each data is stored, the corresponding data ID, data length, data storage address and other information are stored from top to bottom in the data directory storage area, and then the corresponding data content is stored from bottom to top in the data content storage area of the sector.

[0052] In the data directory storage area, the data ID, the data length and the data storage address have fixed format and length, for example, the data directory of each data stored is in unit of line, starting from the seventh byte, two bytes of data ID, followed by two bytes of data length, and then two bytes of data storage address (starting address of data storage); in the data content storage area, the data content also has a set storage format, for example, the first six bytes and the last byte of each line are non-data content.

[0053] In an embodiment, the J_Link emulator can be used to obtain all data of the DFLASH to be analyzed through the installed J_Flash software, and in order to more normatively and accurately complete the extraction of all data subsequently, the obtained all data of the DFLASH to be analyzed is saved according to a set first file name and first storage location. For example, it is saved as a mot file, and the file is named DFLASH.

[0054] In other embodiments, the way of obtaining all data of the DFLASH to be analyzed and the way of saving it can be selected according to specific application, and the present application does not limit and fix it.

[0055] In step S2, referring to the description accompanying drawings Figure 2 , the all data in the DFLASH to be analyzed is extracted according to the format corresponding to the data directory and the data content based on the storage rule, to obtain data to be analyzed, including the following steps:

[0056] S201, extracting all data of the DFLASH to be analyzed according to a set first file name and first storage location;

[0057] S202, obtaining a data ID list of the all data based on the storage rule; wherein the data ID list includes data length and data storage address corresponding to each data ID;

[0058] S203, extracting data content corresponding to each data ID according to the data length, with the data storage address as an index;

[0059] S204, taking the extracted data content corresponding to each data ID as the analysis data.

[0060] That is, in steps S201-S204, the obtained all data of the DFLASH storage to be analyzed is extracted to be saved in a set format, preferably in a format of data ID corresponding to data content, so as to avoid the inconvenience of data analysis caused by the dispersion of data ID and data content in the prior art.

[0061] In an embodiment, the data storage rule of DFLASH can be edited into an execution script by using Python language to extract the data content corresponding to each data ID from the obtained all data of the DFLASH storage to be analyzed. See the attached Figure 3 and the attached Figure 4 Taking the data content of data ID 3100 as an example, to find the data content of data ID 3100, the data ID needs to be found first, and the data directory storage area is traversed in units of lines, wherein the 7th byte is the data ID, the data ID occupies two bytes, the subsequent two bytes 0012 are the data length, and the two bytes 3738 that follow are the data storage address (the storage mode is from low byte to high byte); then the corresponding data content can be found according to the data length and the data storage address in the data content storage area.

[0062] In addition, it should be noted that in step S201, if the file storage address or file naming of the all data of the DFLASH storage to be analyzed saved in the above step S1 does not conform to the specification, the data extraction will be abnormal and an error will be reported.

[0063] And, referring to the attached Figure 5 After all the data content is extracted, it is saved in a format of data ID + data content per line to obtain the analysis data. And the analysis data is saved in a set second file name and second storage position, so that the analysis of the analysis data can be more standardized and more accurate, for example, the analysis data is saved as a DATA.txt document, and is placed in the same folder as the generated mot file, and after successful saving, a prompt of successful extraction of the analysis data is given.

[0064] In other embodiments, the way of obtaining the analysis data and the way of saving it can be selected according to specific applications, and the present application does not limit and fix it.

[0065] In step S3, the data to be analyzed is extracted according to the set second file name and second storage location, and then compared with correct data, wherein if there is a difference between the data to be analyzed and the correct data, the corresponding data is taken as problem data and displayed through identification. The correct data and the data to be analyzed have the same format (each line of data is in the format of data ID: + data content).

[0066] In an embodiment, referring to the accompanying drawings Figure 6 The WinMerge software can be used to process the data to be analyzed and the correct data for comparison, so that the problem data can be screened out. When there is a difference between the data to be analyzed and the correct data, a high-light prompt is given, so that the abnormal data can be found very quickly and intuitively. The WinMerge software is a free and open source file comparison / merging tool running under the Windows system. It can be used to compare the contents of multiple documents, or even the file differences between folders and folders. It is suitable for programmers or friends who often need to write documents. How to use the application is well known to those skilled in the art, and will not be described here.

[0067] It can be seen that the effective data extraction and analysis method of the DFLASH structural storage provided by the application can accurately and efficiently extract effective data from the data storage file of the DFLASH structural storage rule with the Autosar standard by using the data storage rule, and finally accurately and quickly screen out inconsistent abnormal data by comparing with correct data. In the face of a large amount of DFLASH storage file, the automatic analysis data method greatly improves the work efficiency of analyzing the DFLASH storage file.

[0068] Based on the same inventive concept, the application also provides an effective data extraction and analysis device for DFLASH structural storage. Since the principle of solving problems in the device is similar to the above-mentioned effective data extraction and analysis method of DFLASH structural storage, the implementation of the device can be referred to the implementation of the method, and the repeated parts will not be described here.

[0069] As shown in the accompanying drawings Figure 7 The application also provides an effective data extraction and analysis device for DFLASH structural storage. The device comprises:

[0070] The acquisition module 701 is configured to acquire all data of the DFLASH to be analyzed. Each data comprises a data directory and data content, and the data directory and the data content are stored in the DFLASH to be analyzed according to a fixed storage rule.

[0071] extracting, by an extracting module 702, all data in the DFLASH to be analyzed according to a format corresponding to the data directory and the data content based on the storage rule, to obtain data to be analyzed;

[0072] comparing, by an analyzing module 703, the data to be analyzed with correct data, and screening out problem data in the data to be analyzed.

[0073] In some embodiments, the data directory includes data IDs, data lengths, and data storage addresses set with fixed lengths.

[0074] In some embodiments, the obtaining module 701 stores the data directory and the data content in the DFLASH to be analyzed according to the following fixed storage rule:

[0075] dividing each sector of the DFLASH to be analyzed into a data directory storage area and a data content storage area;

[0076] for each data stored in the DFLASH to be analyzed, storing the data ID, the data length, and the data storage address of the data in the data directory storage area in order from top to bottom according to the memory address, and storing the data content in the data content storage area in order from bottom to top according to the memory address.

[0077] In some embodiments, after the obtaining module 701 obtains all data stored in the DFLASH to be analyzed, the obtaining module 701 further includes:

[0078] saving all data stored in the DFLASH to be analyzed according to a set first file name and a first storage location.

[0079] In some embodiments, the extracting module 702 extracts all data in the DFLASH to be analyzed according to the format corresponding to the data directory and the data content based on the storage rule, to obtain data to be analyzed, including:

[0080] extracting all data stored in the DFLASH to be analyzed according to a set first file name and a first storage location;

[0081] obtaining a data ID list of the all data based on the storage rule; wherein the data ID list includes a data length and a data storage address corresponding to each data ID;

[0082] extracting the data content corresponding to each data ID according to the data length with the data storage address as an index;

[0083] The data content corresponding to each extracted data ID is taken as the data to be analyzed.

[0084] In some embodiments, after the extraction module 702 obtains the data to be analyzed, the method further comprises:

[0085] The data to be analyzed is saved according to the set second file name and second storage location.

[0086] In some embodiments, the analysis module 703 compares the data to be analyzed with correct data to screen out problem data in the data to be analyzed, comprising:

[0087] The data to be analyzed is extracted according to the set second file name and second storage location;

[0088] The data to be analyzed is compared with correct data, and if there is a difference between the data to be analyzed and the correct data, the corresponding data is taken as problem data and displayed through identification.

[0089] The application provides an effective data extraction and analysis device of a DFLASH structural storage. The device obtains all data to be analyzed in a DFLASH storage through an acquisition module. Each data includes a data directory and data content, and the data directory and the data content are dispersedly stored in the DFLASH to be analyzed according to a fixed storage rule. The extraction module extracts all data in the DFLASH to be analyzed according to the format corresponding to the data directory and the data content based on the storage rule, and obtains data to be analyzed. The analysis module compares the data to be analyzed with correct data, and screens out problem data in the data to be analyzed. Thus, according to the data storage rule of the DFLASH, all data in the DFLASH to be analyzed is automatically extracted and analyzed by using a programming script, and the efficiency and accuracy are improved.

[0090] Based on the same concept of the application, the specification Figure 8 As shown in the accompanying drawings, the electronic device 800 provided by the embodiments of the application includes at least one processor 801, at least one network interface 804 or other user interface 803, a memory 805, and at least one communication bus 802. The communication bus 802 is used to realize the connection and communication between the components. The electronic device 800 can optionally include a user interface 803, including a display (for example, a touch screen, an LCD, a CRT, holographic imaging (Holographic), or a projector (Projector), etc.), a keyboard or a clicking device (for example, a mouse, a trackball, a touchpad, or a touch screen, etc.).

[0091] The memory 805 can include read-only memory and random access memory, and provide instructions and data to the processor 801. A portion of the memory 805 can also include non-volatile random access memory (NVRAM).

[0092] In some embodiments, the memory 805 stores the following elements, the protectable modules or data structures, or their subsets, or their extended sets:

[0093] The operating system 8051 contains various system programs, used to implement various basic services and process hardware-based tasks;

[0094] The application program module 8052 contains various application programs, such as a desktop (launcher), a media player (MediaPlayer), a browser (Browser), etc., used to implement various application services.

[0095] In the embodiments of the present application, by calling the programs or instructions stored in the memory 805, the processor 801 is used to execute the steps in the effective data extraction analysis method of the DFLASH structural storage, and the problem data in the DFLASH can be quickly and accurately analyzed.

[0096] The present application also provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to perform the steps in the effective data extraction analysis method of the DFLASH structural storage.

[0097] Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, etc., and the computer program on the storage medium can be executed to perform the effective data extraction analysis method of the DFLASH structural storage.

[0098] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division, and other division manners can be used in actual implementation. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some communication interfaces, and can be electrical, mechanical or other forms.

[0099] The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.

[0100] In addition, each functional unit in the embodiments provided in the present application can be integrated into one processing unit, or each unit can exist physically, or two or more units can be integrated into one unit.

[0101] If the function is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application essentially or the part of the prior art or the part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a plurality of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the embodiments of the present application. The foregoing storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and various program codes that can be stored in the medium.

[0102] Finally, it should be noted that: the above embodiments are only specific embodiments of the present application, used to illustrate the technical solutions of the present application, and not to limit them. The protection scope of the present application is not limited thereto, although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any skilled person in the art can modify or easily think of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed by the present application, or make equivalent replacement to some technical features thereof; and these modifications, changes or replacements do not make the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application. All should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. An effective data extraction and analysis method for DFLASH structured storage, characterized in that, The method includes the following steps: Obtain all data stored in the DFLASH to be analyzed; wherein each piece of data includes a data directory and data content, and the data directory and data content are distributed and stored in the DFLASH to be analyzed according to a fixed storage rule; wherein the data directory and data content are distributed and stored in the DFLASH to be analyzed according to the following fixed storage rule: each sector of the DFLASH to be analyzed is divided into a data directory storage area and a data content storage area; for each piece of data stored in the DFLASH to be analyzed, its data ID, data length and data storage address are stored one by one in the data directory storage area in order from top to bottom according to memory address, and its data content is stored one by one in the data content storage area in order from bottom to top according to memory address; Based on the storage rules, all data in the DFLASH to be analyzed is extracted according to the format corresponding to the data directory and the data content to obtain the data to be analyzed; after obtaining the data to be analyzed, the data to be analyzed is saved according to the set second file name and second storage location; wherein, each line is saved in the format of data ID: + data content; The data to be analyzed is extracted according to the set second file name and second storage location. The data to be analyzed is compared with the correct data, and the problematic data in the data to be analyzed is filtered out.

2. The effective data extraction and analysis method for DFLASH structured storage according to claim 1, characterized in that, in, The data directory includes a data ID with a fixed length, a data length, and a data storage address.

3. The effective data extraction and analysis method for DFLASH structured storage according to claim 2, characterized in that, After obtaining all the data stored in the DFLASH to be analyzed, the following steps are also included: All the data acquired from the DFLASH storage to be analyzed will be saved according to the set first file name and first storage location.

4. The effective data extraction and analysis method for DFLASH structured storage according to claim 3, characterized in that, The step of extracting all data from the DFLASH to be analyzed according to the storage rules and the format corresponding to the data directory and data content to obtain the data to be analyzed includes the following steps: Extract all data stored in the DFLASH to be analyzed based on the set first file name and first storage location; A list of data IDs for all the data is obtained based on the storage rules; wherein, the list of data IDs includes the data length and data storage address corresponding to each data ID; Using the data storage address as an index, extract the data content corresponding to each data ID according to the data length; The data content corresponding to each extracted data ID is used as the data to be analyzed.

5. The effective data extraction and analysis method for DFLASH structured storage according to claim 4, characterized in that, The process of comparing the data to be analyzed with the correct data to filter out problematic data includes the following steps: The data to be analyzed is compared with the correct data. If there is a difference between the data to be analyzed and the correct data, the corresponding data is regarded as problematic data and displayed by an identifier.

6. An effective data extraction and analysis device for DFLASH structured storage, characterized in that, The device includes: An acquisition module is used to acquire all data stored in the DFLASH to be analyzed. Each piece of data includes a data directory and data content, which are distributed throughout the DFLASH according to a fixed storage rule. Specifically, the data directory and data content are distributed throughout the DFLASH according to the following fixed storage rule: each sector of the DFLASH is divided into a data directory storage area and a data content storage area; for each piece of data stored in the DFLASH, its data ID, data length, and data storage address are stored sequentially in the data directory storage area according to memory address from top to bottom, and its data content is stored sequentially in the data content storage area according to memory address from bottom to top. The extraction module is used to extract all data in the DFLASH to be analyzed according to the storage rules and the format corresponding to the data directory and the data content to obtain the data to be analyzed; after obtaining the data to be analyzed, the data to be analyzed is saved according to the set second file name and second storage location; wherein, each line is saved in the format of data ID: + data content; The analysis module is used to extract the data to be analyzed based on the set second file name and second storage location, compare the data to be analyzed with the correct data, and filter out the problematic data in the data to be analyzed.

7. An electronic device, characterized in that, include: The device includes a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, they perform the steps of the effective data extraction and analysis method for DFLASH structured storage as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps of the effective data extraction and analysis method for DFLASH structured storage as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Memory device data recovery achieving method based on flash memory chip

    CN103544082A

  • A Flash memory data storage method and a read method

    CN109271100A