Data storage analysis device for embedded systems

By designing a data storage analysis device in an embedded system, decoding and accessing operation information and recording operation time, the problem of insufficient evaluation of the mutual influence of hardware, software and system in an embedded system is solved, accurate performance and reliability evaluation is achieved, and the system's testing flexibility and security is improved.

CN119621521BActive Publication Date: 2025-07-18NORTH VALLEY ELECTRONICS CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510168075.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-17
Publication Date
2025-07-18
Estimated Expiration
2045-02-17

AI Technical Summary

Technical Problem

The lack of comprehensive consideration of the mutual influence between embedded system hardware, software and systems in the prior art has led to the inability to accurately evaluate data storage performance and reliability.

Method used

A data storage analysis device is designed, including a diagnostic control board and a data statistics storage module, connected to the memory interface of the embedded system through the bus simulation interface and the upper computer communication interface, decodes the access operation information, records the operation time, and transmits it to the upper computer for analysis.

Benefits of technology

Ability to analyze frequently accessed data areas in embedded systems, provide accurate data storage performance and reliability evaluation, reduce costs, increase testing flexibility, improve system reliability and security, detect problems early, and optimize system design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119621521B_ABST
    Figure CN119621521B_ABST
Patent Text Reader

Abstract

The data storage analysis device for an embedded system provided by the present invention is connected to the memory interface of the embedded system through a bus simulation interface arranged on a diagnostic control board via a storage simulation bus, so that the access operation information of the embedded system to the memory interface can be transmitted to the bus simulation interface; the bus simulation interface decodes the access operation information according to the storage protocol followed by the storage simulation bus to obtain timing record data; by setting a data statistics storage module, corresponding read operations / write operations can be executed and the operation time can be recorded, and storage analysis data can be obtained; by arranging a host computer communication interface on the diagnostic control board to be connected to the host computer via a host computer bus, the storage analysis data can be transmitted to the host computer, and the data areas frequently accessed in the embedded system can be analyzed, so as to analyze whether there are problems with the performance of the embedded system itself, providing rich basis for accurately evaluating the data storage performance and reliability of the embedded system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of embedded technology, and particularly relates to a data storage analysis device for an embedded system. Background Art

[0002] With the rapid development of embedded technology, embedded systems have been widely penetrated into various fields such as scientific research, engineering design, military technology, and people's daily lives.

[0003] Currently, the data storage performance and reliability analysis of embedded systems can generally be divided into the following three different levels: application-level analysis, system-level analysis, and hardware-level analysis. These three levels each focus on different aspects, and the analysis process is usually carried out independently.

[0004] However, the reliability of embedded systems is not only restricted by the memory hardware design but also affected by factors such as software usage patterns and system architectures. In the data storage performance and reliability analysis of embedded systems, there is often a lack of comprehensive consideration of the mutual influence among hardware, software, and the system, which is likely to lead to an inaccurate assessment of the data storage performance and reliability of embedded systems. Summary of the Invention

[0005] The purpose of the present invention is to provide a data storage analysis device for an embedded system to solve one or more of the problems in the prior art, such as the inability to accurately evaluate the data storage performance and reliability of embedded systems due to the lack of comprehensive consideration of the mutual influence among hardware, software, and the system.

[0006] To achieve the above object, the present invention is implemented through the following technical solutions: A data storage analysis device for an embedded system, the embedded system includes a memory interface, and the data storage analysis device includes a diagnostic control board and a data statistics storage module. A bus simulation interface and a host computer communication interface are provided on the diagnostic control board; the bus simulation interface is connected to the memory interface through a storage simulation bus, and the host computer communication interface is connected to the host computer through a host computer bus; the bus simulation interface is configured to: receive the access operation information of the embedded system to the memory interface, and decode the access operation information according to the storage protocol followed by the storage simulation bus to obtain timing record data; the timing record data includes the access start time and the target access address, and read operation information / write operation information; the data statistics storage module is configured to: perform corresponding read operations / write operations according to the target access address and the read operation information / the write operation information and record the operation time; and obtain storage analysis data according to the operation time and the timing record data; the host computer communication interface is configured to: transmit the storage analysis data to the host computer.

[0007] Optionally, the write operation information includes data to be written; the data statistics storage module includes a memory simulation unit, and the memory simulation unit is configured to: return data to be read according to the target access address / store the data to be written to the target access address.

[0008] Optionally, the data statistics storage module includes a physical simulation interface, a physical simulation bus, and a hardware memory. The physical simulation interface is disposed on the diagnostic control board, and the physical simulation interface is connected to the hardware memory through the physical simulation bus; the physical simulation interface is configured to: receive the access operation information of the embedded system to the memory interface through the bus simulation interface and forward the access operation information to the hardware memory.

[0009] Optionally, the physical simulation interface includes an SPI interface, an SDIO interface, or an EMMC interface.

[0010] Optionally, the hardware memory includes a NAND Flash memory, a Nor Flash memory, an EEPROM memory, or an EMMC memory.

[0011] Optionally, the embedded system further includes a diagnostic interface, and the diagnostic interface is used to record and transmit the operation status information of the embedded system; the diagnostic control board further includes a high-speed diagnostic bus interface and a diagnostic recording unit, and the high-speed diagnostic bus interface is connected to the diagnostic interface through a high-speed bus; the high-speed diagnostic bus interface is configured to: use a hook function added to the embedded system to obtain the application-level storage call information and system-level storage call information of the embedded system; the diagnostic recording unit is configured to: receive and record the application-level storage call information and the system-level storage call information, and transmit the application-level storage call information and the system-level storage call information to the data statistics storage module; the data statistics storage module is further configured to: receive the application-level storage call information and the system-level storage call information, and transmit the application-level storage call information and the system-level storage call information to the host computer through the host computer communication interface.

[0012] Optionally, the high-speed diagnostic bus interface includes a PCIE interface or a USB interface.

[0013] Optionally, the diagnostic control board includes an FPGA chip.

[0014] Optionally, the bus simulation interface includes an SPI interface, an SDIO interface, or an EMMC interface.

[0015] Optionally, the host computer communication interface includes a PCIE interface.

[0016] Compared with the prior art, the data storage analysis device for an embedded system provided by the present invention has the following beneficial effects:

[0017] The data storage analysis device for an embedded system provided by the present invention, the embedded system includes a memory interface, the data storage analysis device includes a diagnostic control board and a data statistics storage module, and a bus simulation interface and a host computer communication interface are provided on the diagnostic control board; the bus simulation interface is connected to the memory interface through a storage simulation bus, and the host computer communication interface is connected to the host computer through a host computer bus; the bus simulation interface is configured to: receive the access operation information of the embedded system to the memory interface, and decode the access operation information according to the storage protocol followed by the storage simulation bus to obtain timing record data; the timing record data includes an access start time and a target access address, and read operation information / write operation information; the data statistics storage module is configured to: perform corresponding read operations / write operations according to the target access address and the read operation information / the write operation information and record the operation time; and obtain storage analysis data according to the operation time and the timing record data; the host computer communication interface is configured to: transmit the storage analysis data to the host computer. Thus, the data storage analysis device for an embedded system provided by the present invention, by providing a bus simulation interface on the diagnostic control board, and the bus simulation interface is connected to the memory interface of the embedded system through a storage simulation bus, enables the access operation information of the embedded system to the memory interface to be transmitted to the bus simulation interface; the bus simulation interface provided on the diagnostic control board can decode the access operation information according to the storage protocol followed by the storage simulation bus to obtain timing record data, and the timing record data includes an access start time and a target access address, and read operation information / write operation information. By providing the data statistics storage module, corresponding read operations / write operations can be performed according to the target access address and the read operation information / the write operation information and the operation time can be recorded, and storage analysis data can be obtained according to the operation time and the timing record data. Further, by providing a host computer communication interface on the diagnostic control board, and the host computer communication interface is connected to the host computer through a host computer bus, the storage analysis data in the data statistics storage module can be transmitted to the host computer for analysis. Thus, by using the data storage analysis device provided by the present invention, the data regions frequently accessed in the embedded system can be analyzed, so that it can be analyzed whether there are problems with the performance of the embedded system itself, providing rich basis for accurately evaluating the data storage performance and reliability of the embedded system.

[0018] Further, the write operation information includes data to be written; the data statistics storage module includes a memory simulation unit, and the memory simulation unit is configured to: return data to be read according to the target access address / store the data to be written to the target access address. Thus, the data storage analysis device for an embedded system provided by the present invention can simulate the functions of real hardware, reproduce the operating logic, response time, data interaction and other characteristics of the hardware by setting a memory simulation unit in the data statistics storage module to return data to be read according to the target access address / store the data to be written to the target access address under the condition that there is no real hardware, so as to provide a highly simulated environment for software development, system testing, fault diagnosis, etc. This can not only reduce costs, increase the flexibility of testing, and improve the reliability and security of the system, but also discover problems at the early stage of product design, thus accelerating the product development progress.

[0019] Still further, the data statistics storage module includes a physical simulation interface, a physical simulation bus and a hardware memory. The physical simulation interface is provided on the diagnostic control board, and the physical simulation interface is connected to the hardware memory through the physical simulation bus; the physical simulation interface is configured to: receive the access operation information of the embedded system to the memory interface through the bus simulation interface and forward the access operation information to the hardware memory. Thus, the data storage analysis device for an embedded system provided by the present invention can, by providing a physical simulation interface on the diagnostic control board and connecting the physical simulation interface to the hardware memory through the physical simulation bus, enable the access operation information of the embedded system to the memory interface to be transmitted to the bus simulation interface and simultaneously transmitted to the physical simulation interface through the bus simulation interface; and by forwarding the access operation information to the hardware memory through the physical simulation interface, the hardware memory can record the access operation information of the embedded system to the memory interface, so as to analyze whether the performance of the hardware memory meets the standard and whether there is a problem of a certain access timeout, thereby laying a good foundation for improving the data storage performance and reliability of the embedded system.

[0020] Furthermore, the embedded system further includes a diagnostic interface for recording and transmitting the operating status information of the embedded system; the diagnostic control board further includes a high-speed diagnostic bus interface and a diagnostic recording unit, and the high-speed diagnostic bus interface is connected to the diagnostic interface through a high-speed bus; the high-speed diagnostic bus interface is configured to: use the hook function added to the embedded system to obtain the application-level storage call information and system-level storage call information of the embedded system; the diagnostic recording unit is configured to: receive and record the application-level storage call information and the system-level storage call information, and transmit the application-level storage call information and the system-level storage call information to the data statistics storage module; the data statistics storage module is further configured to: receive the application-level storage call information and the system-level storage call information, and transmit the application-level storage call information and the system-level storage call information to the host computer through the host computer communication interface. Thus, the data storage analysis device for an embedded system provided by the present invention, by setting a high-speed diagnostic bus interface on the diagnostic control board, and the high-speed diagnostic bus interface is connected to the diagnostic interface of the embedded system through a high-speed bus, enables the high-speed diagnostic bus interface to use the hook function added to the embedded system to obtain the application-level storage call information and system-level storage call information of the embedded system. Through the provided diagnostic recording unit, the application-level storage call information and the system-level storage call information can be received and recorded, and the application-level storage call information and the system-level storage call information can be transmitted to the data statistics storage module. Further, through the provided data statistics storage module, the application-level storage call information and the system-level storage call information can be received, and the application-level storage call information and the system-level storage call information can be transmitted to the host computer through the host computer communication interface for analysis. Thus, by adopting the data storage analysis device provided by the present invention, it can be analyzed whether the problems occurring in the embedded system are application problems or system problems, thereby laying a good foundation for optimizing the embedded system to further improve the data storage performance and reliability of the embedded system. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 FIG. is an example diagram of a data storage analysis device for an embedded system provided in Embodiment 1 of the present invention;

[0022] Figure 2 FIG. is a specific example diagram of a data storage analysis device for an embedded system provided in Embodiment 1 of the present invention;

[0023] Figure 3 FIG. is another specific example diagram of a data storage analysis device for an embedded system provided in Embodiment 1 of the present invention;

[0024] Figure 4This is a specific software framework diagram of a data storage analysis device for an embedded system provided in Embodiment 1 of the present invention;

[0025] Figure 5 This is an example diagram of another data storage analysis device for an embedded system provided in Embodiment 2 of the present invention;

[0026] Figure 6 This is a specific example diagram of another data storage analysis device for an embedded system provided in Embodiment 2 of the present invention;

[0027] Figure 7 This is another specific example diagram of another data storage analysis device for an embedded system provided in Embodiment 2 of the present invention;

[0028] Figure 8 This is a specific software framework diagram of another data storage analysis device for an embedded system provided in Embodiment 2 of the present invention.

[0029] The description of the reference numerals is as follows:

[0030] 1 - Embedded system, 11 - Memory interface, 12 - Diagnostic interface, 2 - Data storage analysis device, 21 - Diagnostic control board, 211 - Bus simulation interface, 2111 - Storage simulation bus, 212 - Host computer communication interface, 2121 - Host computer bus, 2122 - Host computer, 213 - Physical simulation interface, 2131 - Physical simulation bus, 2132 - Hardware memory, 214 - High - speed diagnostic bus interface, 2141 - High - speed bus, 215 - Diagnostic record unit, 22 - Data statistics storage module, 221 - Memory simulation unit. Detailed implementation manners

[0031] The following further elaborates on the data storage analysis device for an embedded system proposed by the present invention in conjunction with the accompanying drawings and specific embodiments. According to the following description, the advantages and features of the present invention will be clearer. It should be noted that the accompanying drawings are all in a very simplified form and use non-precise scales, only for conveniently and clearly assisting in explaining the purpose of the embodiments of the present invention. In order to make the purpose, features, and advantages of the present invention more obvious and understandable, please refer to the accompanying drawings. It should be known that the structures, scales, sizes, etc. shown in the drawings of this specification are only used to cooperate with the content disclosed in the specification for those familiar with this technology to understand and read, and are not used to limit the limiting conditions for the implementation of the present invention. Any modification of the structure, change in the proportional relationship, or adjustment of the size, in the case of being the same or similar to the effects that the present invention can produce and the purposes that can be achieved, should still fall within the scope covered by the technical content disclosed by the present invention. The specific design features of the present invention disclosed herein, such as specific dimensions, directions, positions, and shapes, will be partially determined by the specific application and usage environment. Also, in the following described embodiments, sometimes the same reference numerals are used commonly between different drawings to represent the same parts or parts with the same functions, and the repeated description thereof is omitted.

[0032] Embodiment 1

[0033] This embodiment provides a data storage analysis device for an embedded system. Specifically, please refer to Figures 1 to 4 , Figure 1 which is an example diagram of a data storage analysis device for an embedded system provided by this embodiment; Figure 2 which is one specific example diagram of a data storage analysis device for an embedded system provided by this embodiment; Figure 3 which is another specific example diagram of a data storage analysis device for an embedded system provided by this embodiment; Figure 4 which is one specific software framework diagram of a data storage analysis device for an embedded system provided by this embodiment. From Figures 1 to 4It can be seen that the embedded system 1 includes a memory interface 11, and the data storage analysis device 2 includes a diagnostic control board 21 and a data statistics storage module 22. A bus simulation interface 211 and a host computer communication interface 212 are provided on the diagnostic control board 21; the bus simulation interface 211 is connected to the memory interface 11 through a storage simulation bus 2111, and the host computer communication interface 212 is connected to a host computer 2122 through a host computer bus 2121; the bus simulation interface 211 is configured to: receive the access operation information of the embedded system 1 for the memory interface 11, and decode the access operation information according to the storage protocol followed by the storage simulation bus 2111 to obtain timing record data; the timing record data includes an access start time, a target access address, and read operation information / write operation information; the data statistics storage module 22 is configured to: perform a corresponding read operation / write operation according to the target access address and the read operation information / write operation information and record the operation time; and obtain storage analysis data according to the operation time and the timing record data; the host computer communication interface 212 is configured to: transmit the storage analysis data to the host computer 2122. Thus, for the data storage analysis device for an embedded system provided in this embodiment, by providing a bus simulation interface 211 on the diagnostic control board 21, and connecting the bus simulation interface 211 to the memory interface 11 of the embedded system 1 through a storage simulation bus 2111, the access operation information of the embedded system 1 for the memory interface 11 can be transmitted to the bus simulation interface 211; the bus simulation interface 211 provided on the diagnostic control board 21 can decode the access operation information according to the storage protocol followed by the storage simulation bus 2111 to obtain timing record data, and the timing record data includes an access start time, a target access address, and read operation information / write operation information. By providing the data statistics storage module 22, a corresponding read operation / write operation can be performed according to the target access address and the read operation information / write operation information and the operation time can be recorded, and storage analysis data can be obtained according to the operation time and the timing record data. Further, by providing a host computer communication interface 212 on the diagnostic control board 21, and connecting the host computer communication interface 212 to the host computer 2122 through a host computer bus 2121, the storage analysis data in the data statistics storage module 22 can be transmitted to the host computer 2122 for analysis. Thus, by using the data storage analysis device 2 provided in this embodiment, the data area frequently accessed in the embedded system 1 can be analyzed, so that whether there are problems with the performance of the embedded system 1 itself can be analyzed, providing rich basis for accurately evaluating the data storage performance and reliability of the embedded system 1.

[0034] Preferably, the diagnostic control board 21 includes an FPGA chip. Thus, the FPGA chip allows developers to customize logic functions according to specific requirements, which can enhance the flexibility of the data storage and analysis device 2.

[0035] Preferably, the bus simulation interface 211 can be, but is not limited to, an SPI interface, an SDIO interface, and an EMMC interface. Thus, by setting various forms of bus simulation interfaces 211, it can adapt to different embedded systems 1, thereby improving the versatility and reuse rate of the data storage and analysis device 2.

[0036] Furthermore, the host computer communication interface 212 includes a PCIE interface. Thus, it can improve the data transmission speed and reduce the transmission delay.

[0037] It should be noted that the host computer 2122 can be, but is not limited to, a desktop computer, a laptop computer, the cloud, a server, a mobile electronic device, etc. Exemplarily, in one exemplary implementation, the host computer 2122 is a desktop computer, which can analyze the received data and display the results.

[0038] The storage protocol followed by the storage simulation bus 2111 can include, but is not limited to, the SPI protocol, the SDIO protocol, the I 2 C protocol, and the EMMC protocol.

[0039] Exemplarily, taking the read operation as an example, the working process of the data storage and analysis device for the embedded system provided in this embodiment is described as follows: First, the embedded system 1 issues a read operation instruction for the memory interface 11. The read operation instruction is converted into an electrical signal through the memory interface 11 of the embedded system 1 and transmitted to the bus simulation interface 211 on the diagnostic control board 21 through the storage simulation bus 2111. Next, after receiving these electrical signals, the bus simulation interface 211 decodes these electrical signals according to the storage protocol followed by the storage simulation bus 2111, understands and analyzes that the type of this access operation of the embedded system 1 to the memory interface 11 is a read operation, as well as the access start time and the target read address of this access operation. The data statistics and storage module 22 returns the data to be read according to the target read address and records the time spent on this read operation, and the data statistics and storage module 22 stores the relevant information of this access operation of the embedded system 1 to the memory interface 11. Finally, the relevant information of this access operation of the embedded system 1 to the memory interface 11 is transmitted to the host computer 2122 through the host computer communication interface 212 for analysis.

[0040] It should be noted that the data statistics and storage module 22 can also store the relevant information of each access operation of the embedded system 1 to the memory interface 11 according to the time sequence of access.

[0041] Specifically, in one exemplary embodiment, the write operation information includes data to be written; the data statistics storage module 22 includes a memory emulation unit 221, and the memory emulation unit 221 is configured to: return data to be read according to the target access address / store the data to be written to the target access address. Thus, by setting the memory emulation unit 221 in the data statistics storage module 22 to return data to be read according to the target access address / store the data to be written to the target access address, the function of the real hardware can be simulated under the condition that there is no real hardware, and the operating logic, response time, data interaction and other characteristics of the hardware can be reproduced, providing a highly emulated environment for software development, system testing, fault diagnosis, etc. This can not only reduce costs, increase the flexibility of testing, and improve the reliability and security of the system, but also discover problems in the early stage of product design, thus accelerating the product development progress.

[0042] In another exemplary embodiment, the data statistics storage module 22 includes a physical emulation interface 213, a physical emulation bus 2131 and a hardware memory 2132. The physical emulation interface 213 is disposed on the diagnostic control board 21, and the physical emulation interface 213 is connected to the hardware memory 2132 through the physical emulation bus 2131; the physical emulation interface 213 is configured to: receive the access operation information of the embedded system 1 to the memory interface 11 through the bus simulation interface 211 and forward the access operation information to the hardware memory 2132. Thus, by setting the physical emulation interface 213 on the diagnostic control board 21 and connecting the physical emulation interface 213 to the hardware memory 2132 through the physical emulation bus 2131, when the access operation information of the embedded system 1 to the memory interface 11 is transmitted to the bus simulation interface 211, it can be synchronously transmitted to the physical emulation interface 213 through the bus simulation interface 211; and by forwarding the access operation information to the hardware memory 2132 through the physical emulation interface 213, the hardware memory 2132 can record the access operation information of the embedded system 1 to the memory interface 11, so as to analyze whether the performance of the hardware memory 2132 meets the standard and whether there is a problem of a certain access timeout, thereby laying a good foundation for improving the data storage performance and reliability of the embedded system 1.

[0043] Preferably, the physical emulation interface 213 can be, but is not limited to, an SPI interface, an SDIO interface, and an EMMC interface. Thus, the data storage analysis device for the embedded system provided by the present invention can adapt to different types of memories, thereby improving the flexibility of the data storage analysis device 2.

[0044] Further, the hardware memory 2132 includes a NAND Flash memory, a Nor Flash memory, an EEPROM memory, or an EMMC memory. Thereby, the applicability of the data storage and analysis device 2 can be improved.

[0045] It should be noted that when the embedded system 1 is powered off and there is no backup power supply, by using the data storage and analysis device for the embedded system provided in this embodiment, through the record of the storage operation by the data statistics storage module 22, the last operation state of the system before the power-off moment can be captured. Based on the data recorded by the data statistics storage module 22, the power-off delay can be analyzed, so as to analyze whether the file system state of the embedded system 1 at the time of power-off is reliable, providing strong data for file system analysis when powering on again.

[0046] In addition, by using the data storage and analysis device for the embedded system provided in this embodiment, wear leveling analysis can be performed on the embedded system 1. Specifically, through the long-term record of the host computer 2122, the state of each sector and page in the embedded system 1 can be obtained, so as to analyze whether the wear leveling designed by the application software meets the expectation.

[0047] Embodiment 2

[0048] This embodiment provides another data storage and analysis device for an embedded system. Specifically, please refer to Figures 5 to 8 , Figure 5 which is an example diagram of another data storage and analysis device for an embedded system provided in this embodiment; Figure 6 which is one specific example diagram of another data storage and analysis device for an embedded system provided in this embodiment; Figure 7 which is another specific example diagram of another data storage and analysis device for an embedded system provided in this embodiment; Figure 8 which is one specific software framework diagram of another data storage and analysis device for an embedded system provided in this embodiment. From Figures 5 to 8It can be seen that the data storage analysis device for an embedded system provided in this embodiment is basically the same as the data storage analysis device for an embedded system provided in Embodiment 1. To avoid repetition, for the parts not mentioned in this embodiment, please refer to the relevant descriptions in Embodiment 1 for adaptive understanding. The following only describes the differences from Embodiment 1 as follows. Different from the above embodiment, the data storage analysis device for an embedded system provided in this embodiment, the embedded system 1 further includes a diagnostic interface 12, and the diagnostic interface 12 is used to record and transmit the operation status information of the embedded system 1; the diagnostic control board 21 further includes a high-speed diagnostic bus interface 214 and a diagnostic recording unit 215, and the high-speed diagnostic bus interface 214 is connected to the diagnostic interface 12 through a high-speed bus 2141; the high-speed diagnostic bus interface 214 is configured to: use the hook function added to the embedded system 1 to obtain the application-level storage call information and system-level storage call information of the embedded system 1; the diagnostic recording unit 215 is configured to: receive and record the application-level storage call information and the system-level storage call information, and transmit the application-level storage call information and the system-level storage call information to the data statistics storage module 22; the data statistics storage module 22 is further configured to: receive the application-level storage call information and the system-level storage call information, and transmit the application-level storage call information and the system-level storage call information to the host computer 2122 through the host computer communication interface 212.

[0049] Thus, for the data storage analysis device for an embedded system provided in this embodiment, by setting a high-speed diagnostic bus interface 214 on the diagnostic control board 21, and the high-speed diagnostic bus interface 214 is connected to the diagnostic interface 12 of the embedded system 1 through a high-speed bus 2141, the high-speed diagnostic bus interface 214 can use the hook function added to the embedded system 1 to obtain the application-level storage call information and system-level storage call information of the embedded system 1. Through the provided diagnostic recording unit 215, it can receive and record the application-level storage call information and system-level storage call information, and can transmit the application-level storage call information and system-level storage call information to the data statistics storage module 22. Further, through the provided data statistics storage module 22, it can receive the application-level storage call information and system-level storage call information, and can transmit the application-level storage call information and system-level storage call information to the host computer 2122 through the host computer communication interface 212 for analysis. Thus, by using the data storage analysis device 2 provided in this embodiment, it can be analyzed whether the problem occurring in the embedded system 1 is an application problem or a system problem, thereby laying a good foundation for optimizing the embedded system 1 to further improve the data storage performance and reliability of the embedded system 1.

[0050] Exemplarily, the operating state information of the embedded system 1 includes, but is not limited to, system logs, status reports, performance metrics, software debugging information, etc.

[0051] It should be noted that by using the data storage analysis device for an embedded system provided by the present invention, it is possible to analyze whether there is a storage risk in the embedded system 1. For example, a stress test can be formulated for the embedded system 1 in combination with the characteristics of the embedded product itself. After the stress test is completed, the average value, maximum value, etc. are calculated based on the obtained data to analyze whether there is a storage risk in the embedded system 1. Exemplarily, if the maximum storage time of the Nor Flash memory used in the embedded system 1 is 400 milliseconds, but the real-time requirement during the operation of the entire system is to ensure that the corresponding operations are completed within at least 100 milliseconds, then the existing Nor Flash memory may become a bottleneck for the system real-time performance. Therefore, it is necessary to replace the Nor Flash memory with better performance.

[0052] In addition, if the embedded system 1 has a backup power supply, when the embedded system 1 loses power, the system can rely on the backup power supply to maintain operation briefly in the case of a sudden disconnection of the main power supply. During this short time window, the system can execute a series of predetermined power-off processing operations to ensure data integrity and system state consistency. At this time, if the data storage analysis device for an embedded system provided in this embodiment is used, through the application-level storage call information and system-level storage call information recorded by the diagnostic recording unit 215, it is possible to comprehensively determine whether the power-off processing operation is appropriate and whether the system can be restored normally.

[0053] Preferably, the high-speed diagnostic bus interface 214 can be, but is not limited to, a PCIE interface and a USB interface. Thus, the high-speed diagnostic bus interface 214 supports the PCIE interface or the USB interface, which can improve the versatility and flexibility of the data storage analysis device 2.

[0054] To facilitate a better understanding of the present invention, exemplarily, the process of using the data storage analysis device 2 provided in this embodiment to analyze the abnormal problems when the embedded system 1 loses power is described. The model number of the main control chip of the embedded system 1 is STM32F750, and the ordinary FAT32 is used as the file system format for data storage in this main control chip. The physical simulation interface 213 in the data storage analysis device 2 adopts an SDIO interface, and the hardware memory 2132 adopts a Nor Flash memory.

[0055] After the embedded system 1 is powered on, it needs to read 20K of parameter data. At this time, the Nor Flash memory stores data in a loop all the time. When the power is suddenly cut off, the entire embedded system 1 loses power immediately. During the sudden power failure, abnormal results such as file loss or file system damage may occur.

[0056] First, the data statistics storage module 22 can obtain the time consumed by the embedded system 1 to read 20K of parameter data.

[0057] Next, the diagnostic recording unit 215 can record the application-level storage call information and system-level storage call information in the embedded system 1, so that the data statistics storage module 22 can obtain the consumption time of the embedded system 1 to read 20K of parameter data at the application level and the system level respectively.

[0058] Finally, by analyzing the data obtained by the data statistics storage module 22 through the host computer 2122, it can be determined whether it is a hardware problem, an application problem, or a system problem that causes the embedded system 1 to have an abnormality. If it is a hardware problem, a hardware memory 2132 with better performance can be replaced; if it is an application problem, the software of the embedded system 1 can be optimized; if it is a system problem, the system can be optimized.

[0059] In summary, the data storage analysis device for an embedded system provided by the present invention has the following advantages: The data storage analysis device for an embedded system provided by the present invention, the embedded system includes a memory interface, and the data storage analysis device includes a diagnostic control board and a data statistics storage module. A bus simulation interface and a host computer communication interface are provided on the diagnostic control board; the bus simulation interface is connected to the memory interface through a storage simulation bus, and the host computer communication interface is connected to the host computer through a host computer bus; the bus simulation interface is configured to: receive the access operation information of the embedded system to the memory interface, and decode the access operation information according to the storage protocol followed by the storage simulation bus to obtain timing record data; the timing record data includes the access start time and the target access address, as well as read operation information / write operation information; the data statistics storage module is configured to: perform corresponding read operations / write operations according to the target access address and the read operation information / the write operation information and record the operation time; and obtain storage analysis data according to the operation time and the timing record data; the host computer communication interface is configured to: transmit the storage analysis data to the host computer. Thus, the data storage analysis device for an embedded system provided by the present invention, by providing a bus simulation interface on the diagnostic control board, and the bus simulation interface is connected to the memory interface of the embedded system through a storage simulation bus, enables the access operation information of the embedded system to the memory interface to be transmitted to the bus simulation interface; the bus simulation interface provided on the diagnostic control board can decode the access operation information according to the storage protocol followed by the storage simulation bus to obtain timing record data, and the timing record data includes the access start time and the target access address, as well as read operation information / write operation information. Through the provided data statistics storage module, corresponding read operations / write operations can be performed according to the target access address and the read operation information / the write operation information and the operation time can be recorded, and storage analysis data can be obtained according to the operation time and the timing record data. Further, by providing a host computer communication interface on the diagnostic control board, and the host computer communication interface is connected to the host computer through a host computer bus, enables the storage analysis data in the data statistics storage module to be transmitted to the host computer for analysis. Thus, by using the data storage analysis device provided by the present invention, the data regions frequently accessed in the embedded system can be analyzed, so as to analyze whether there are problems with the performance of the embedded system itself, providing rich basis for accurately evaluating the data storage performance and reliability of the embedded system.

[0060] Further, the write operation information includes data to be written; the data statistics storage module includes a memory emulation unit, and the memory emulation unit is configured to: return data to be read according to the target access address / store the data to be written to the target access address. Thus, the data storage analysis device for an embedded system provided by the present invention can simulate the functions of real hardware, reproduce the operating logic, response time, data interaction and other characteristics of the hardware by setting a memory emulation unit in the data statistics storage module to return data to be read according to the target access address / store the data to be written to the target access address under the condition that there is no real hardware, and provide a highly emulated environment for software development, system testing, fault diagnosis, etc. This can not only reduce costs, increase the flexibility of testing, and improve the reliability and security of the system, but also discover problems at the early stage of product design, thereby accelerating the product development progress.

[0061] Still further, the data statistics storage module includes a physical emulation interface, a physical emulation bus, and a hardware memory. The physical emulation interface is provided on the diagnostic control board, and the physical emulation interface is connected to the hardware memory through the physical emulation bus; the physical emulation interface is configured to: receive the access operation information of the embedded system to the memory interface through the bus emulation interface and forward the access operation information to the hardware memory. Thus, the data storage analysis device for an embedded system provided by the present invention, by setting a physical emulation interface on the diagnostic control board and connecting the physical emulation interface to the hardware memory through the physical emulation bus, enables the access operation information of the embedded system to the memory interface to be transmitted to the bus emulation interface and simultaneously transmitted to the physical emulation interface through the bus emulation interface; and by forwarding the access operation information to the hardware memory through the physical emulation interface, the hardware memory can record the access operation information of the embedded system to the memory interface, so as to analyze whether the performance of the hardware memory meets the standard and whether there is a problem of a certain access timeout, thereby laying a good foundation for improving the data storage performance and reliability of the embedded system.

[0062] Furthermore, the embedded system further includes a diagnostic interface for recording and transmitting the operating status information of the embedded system; the diagnostic control board further includes a high-speed diagnostic bus interface and a diagnostic recording unit, and the high-speed diagnostic bus interface is connected to the diagnostic interface through a high-speed bus; the high-speed diagnostic bus interface is configured to: use the hook function added to the embedded system to obtain the application-level storage call information and system-level storage call information of the embedded system; the diagnostic recording unit is configured to: receive and record the application-level storage call information and the system-level storage call information, and transmit the application-level storage call information and the system-level storage call information to the data statistics storage module; the data statistics storage module is further configured to: receive the application-level storage call information and the system-level storage call information, and transmit the application-level storage call information and the system-level storage call information to the host computer through the host computer communication interface. Thus, the data storage analysis device for the embedded system provided by the present invention, by setting a high-speed diagnostic bus interface on the diagnostic control board, and the high-speed diagnostic bus interface is connected to the diagnostic interface of the embedded system through a high-speed bus, enables the high-speed diagnostic bus interface to use the hook function added to the embedded system to obtain the application-level storage call information and system-level storage call information of the embedded system. Through the set diagnostic recording unit, it can receive and record the application-level storage call information and the system-level storage call information, and can transmit the application-level storage call information and the system-level storage call information to the data statistics storage module. Further, through the set data statistics storage module, it can receive the application-level storage call information and the system-level storage call information, and can transmit the application-level storage call information and the system-level storage call information to the host computer through the host computer communication interface for analysis. Thus, by adopting the data storage analysis device provided by the present invention, it can analyze whether the problems occurring in the embedded system are application problems or system problems, thereby laying a good foundation for optimizing the embedded system to further improve the data storage performance and reliability of the embedded system.

[0063] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present invention.

Claims

1. A data storage analysis device for an embedded system, characterized in that, The embedded system includes a memory interface. The data storage analysis device includes a diagnostic control board and a data statistics storage module. A bus simulation interface and a host computer communication interface are provided on the diagnostic control board; The bus simulation interface is connected to the memory interface through a storage simulation bus, and the host computer communication interface is connected to the host computer through a host computer bus; The bus simulation interface is configured to: receive the access operation information of the embedded system for the memory interface, and decode the access operation information according to the storage protocol followed by the storage simulation bus to obtain timing record data; The timing record data includes the access start time, the target access address, and read operation information / write operation information; The data statistics storage module is configured to: perform corresponding read operations / write operations according to the target access address and the read operation information / the write operation information and record the operation time; and obtain storage analysis data according to the operation time and the timing record data; The host computer communication interface is configured to: transmit the storage analysis data to the host computer; The data statistics storage module includes a physical simulation interface, a physical simulation bus, and a hardware memory. The physical simulation interface is provided on the diagnostic control board, and the physical simulation interface is connected to the hardware memory through the physical simulation bus; The physical simulation interface is configured to: receive the access operation information of the embedded system for the memory interface through the bus simulation interface and forward the access operation information to the hardware memory.

2. The data storage analysis device for an embedded system according to claim 1, wherein The write operation information includes data to be written; The data statistics storage module includes a memory simulation unit, and the memory simulation unit is configured to: return data to be read according to the target access address / store the data to be written to the target access address.

3. The data storage analysis device for an embedded system according to claim 1, wherein The physical simulation interface includes an SPI interface or an SDIO interface or an EMMC interface.

4. The data storage analysis device for an embedded system according to claim 1, characterized in that, The hardware memory includes a NAND Flash memory or a Nor Flash memory or an EEPROM memory or an EMMC memory.

5. The data storage analysis device for an embedded system according to claim 1, wherein The embedded system further includes a diagnostic interface, and the diagnostic interface is used to record and transmit the operation status information of the embedded system; The diagnostic control board further includes a high-speed diagnostic bus interface and a diagnostic recording unit, and the high-speed diagnostic bus interface is connected to the diagnostic interface through a high-speed bus; The high-speed diagnostic bus interface is configured to: use a hook function added to the embedded system to obtain the application-level storage call information and system-level storage call information of the embedded system; The diagnostic recording unit is configured to: receive and record the application-level storage call information and the system-level storage call information, and transmit the application-level storage call information and the system-level storage call information to the data statistics storage module; The data statistics and storage module is further configured to: receive the application-level storage call information and the system-level storage call information, and transmit the application-level storage call information and the system-level storage call information to the host computer through the host computer communication interface.

6. The data storage analysis device for an embedded system according to claim 5, characterized in that, The high-speed diagnostic bus interface includes a PCIE interface or a USB interface.

7. The data storage analysis device for an embedded system according to claim 1, wherein The diagnostic control board includes an FPGA chip.

8. The data storage analysis device for an embedded system according to claim 1, characterized in that, The bus simulation interface includes an SPI interface, an SDIO interface, or an EMMC interface.

9. The data storage analysis device for an embedded system according to claim 1, wherein, The host computer communication interface includes a PCIE interface.

Citation Information

Patent Citations

  • 1553B bus semi-physical simulation system and method

    CN117631555A

  • Obtaining diagnostic information through host interfaces

    US20150347325A1