Method for efficiently storing log files in single-chip microcomputer system
A technology for log files and single-chip microcomputers, which is applied in the field of efficient storage of log files, can solve problems such as inability to perform system analysis, wrong conclusions, and unfavorable system analysis, and achieve the effects of reducing preemption, meeting storage requirements, and improving storage efficiency.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0072] This embodiment provides a method for efficiently storing log files in a single-chip microcomputer system, including the following steps:
[0073] S1: Preprocessing: Precalculate the required file size and the required cyclic FIFO size;
[0074] Wherein, the required file size in step S1 provided by the present invention is calculated according to the application scenario and log recording requirements; the calculation formula is as follows:
[0075] Required file size = continuous working time × main cycle frequency × data volume recorded in each cycle
[0076] The required circular FIFO size in step S1 is calculated according to the amount of log data, the performance of the single-chip microcomputer and the performance of the memory; the calculation formula is as follows:
[0077] Required loop FIFO size = maximum write time x main loop frequency x amount of data recorded in each loop.
[0078] S2: Pre-allocate continuous file storage area;
[0079] According to t...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com