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

Log playback system construction method based on embedded SD card

A technology of an embedded system and a construction method, which is applied in the field of embedded system log management, can solve the problem of small internal space and cannot save a large amount of real-time data, etc., and achieves the effects of facilitating data query, improving query accuracy, and improving query efficiency.

Pending Publication Date: 2022-02-01
江苏提米智能科技有限公司
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Aiming at the defect that the internal space of the existing embedded system is small and cannot save a large amount of real-time data, the present invention provides a log playback system based on an embedded SD card and its construction method, transplants the Internet of Things operating system in the embedded system, and creates a thread For running log system tasks, transplant the FATFS file system in the embedded system, optimize the FATFS file system according to the driver program of the SD card module, and determine the read and write protocol in the log system according to the time in the RCT clock module ; Receive operating parameters, according to the read and write rules in the log system, convert the operating parameters into character strings as log records and write them into the FATFS file system, and store them in the SD card, so that the data of the device operation can be stored in the SD card in real time Among them, even when the embedded device fails, the cause of the failure can be checked through the data in the SD card; in addition, data reading and writing are performed in a multi-threaded manner, and the reading and writing threads are executed separately without interfering with each other, and the resource utilization rate is high. lower delay

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
  • Log playback system construction method based on embedded SD card
  • Log playback system construction method based on embedded SD card
  • Log playback system construction method based on embedded SD card

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] Hereinafter, exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Apparently, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments of the present application. It should be understood that the present application is not limited by the exemplary embodiments described here.

[0036] exemplary method

[0037] The invention discloses a method for constructing a log playback system based on an embedded SD card, comprising the following steps:

[0038] S102: Transplant the Internet of Things operating system in the embedded system, and create a thread for running a log system task, and the log system task is divided into a log writing task and a log reading task.

[0039] Specifically, the log information of most existing embedded devices mainly obtains the log information by printing new data in real time through the serial port dev...

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 invention discloses a log playback system based on an embedded SD card and a construction method of the log playback system, and belongs to the technical field of embedded system log management. According to the method, an Internet of Things operating system is transplanted in an embedded system, a thread is created for running a log system task, an FATFS file system is transplanted in the embedded system, the FATFS file system is optimized according to a drive program of an SD card module, and a read-write protocol in the log system is determined according to time in an RCT clock module; operation parameters are received, the operation parameters are converted into character strings according to the read-write rule in the log system, the character strings are written as log records into an FATFS file system, and are stored into an SD card, so that the operation data of equipment can be stored in the SD card in real time, and even if the embedded equipment fails, the fault reason can be checked through the data in the SD card; in addition, data reading and writing are carried out in a multi-thread mode, the reading and writing threads are executed separately and do not interfere with each other, the resource utilization rate is high, and time delay is low.

Description

technical field [0001] The invention belongs to the technical field of log management of an embedded system, and in particular relates to a log playback system of an embedded SD card and a construction method thereof. Background technique [0002] The log information output of most existing embedded devices has become a common debugging method for monitoring the running status of the device. At present, the log information is mainly obtained by printing new data in real time on the serial port device or storing data in the embedded internal space. [0003] After searching, the following patent documents were found: the patent name is application log recording method and system, which discloses a log service system. This invention uses inter-process communication technology to greatly reduce the original frequent disk I / O operations, and can not only log Record in detail and keep resource usage low. This invention is aimed at the PC system. The difference between the embedde...

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
IPC IPC(8): G06F11/07G06F16/18
CPCG06F11/0736G06F11/0766G06F16/1815
Inventor 薛峰张万友管兴柃
Owner 江苏提米智能科技有限公司
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