Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Embedded system log recording method and device

An embedded system and log technology, applied in the direction of multi-program device, resource allocation, program control design, etc., can solve few problems, achieve the effect of prolonging log recording time and improving memory utilization

Inactive Publication Date: 2017-12-29
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF8 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, limited by the hardware resources of the embedded system, the random access memory (random access memory, RAM) or flash memory (Flash EEPROM Memory, Flash) used for storage is very valuable, and these memories not only need to be used for the running memory of the embedded system , but also to store some important configuration files, so there is very little memory available for logging

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Embedded system log recording method and device
  • Embedded system log recording method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0036] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0037] Next, a method for recording logs in an embedded system provided by an embodiment of the present invention is described in detail. figure 1 A flow chart of a method for embedded system log rec...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses an embedded system log recording method and device. According to the method, a total number of files and an upper limit of a file size set by a user are received; generated log information is stored into a target file, and if the target file does not exist, the target file is established first; and when the memory size of the target file exceeds the upper limit, the target file is renamed, and a target file with the original file name is reestablished and used for recording newly generated log information. When the number of all established log files exceeds the total number, one log file not conforming to a preset condition is deleted, all the remaining log files and the target file are renamed according to preset naming rules, and a target file is created again. Logs are recorded in a rolling mode, that is, when the log recording size reaches the upper limit, newly recorded logs will cover oldest logs, and therefore the purposes of increasing the memory utilization rate and prolonging log recording time are achieved.

Description

technical field [0001] The invention relates to the technical field of embedded systems, in particular to a method and device for logging records in an embedded system. Background technique [0002] In today's society, embedded systems are more and more widely used in various industries, ranging from aerospace equipment to microwave smart watches, all of which have embedded programs running in them. Due to the particularity of the embedded system operating environment, it is difficult to locate and debug problems. At this time, log (log) records are particularly important for problem location and debugging. However, limited by the hardware resources of the embedded system, the random access memory (random access memory, RAM) or flash memory (Flash EEPROM Memory, Flash) used for storage is very valuable, and these memories not only need to be used for the running memory of the embedded system , but also to store some important configuration files, so there is very little me...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/34G06F11/30G06F9/50
CPCG06F11/3476G06F9/5016G06F11/3013
Inventor 史宗华
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products