Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and system for carrying out linux log management through virtual serial port

A virtual serial port and log technology, which is applied in the computer field, can solve the problems that cannot be used at the same time, the serial port resources of embedded devices are limited, and information cannot be checked back, so as to achieve the effect of complete and thorough acquisition, simple operation and strong versatility

Inactive Publication Date: 2015-03-25
XIAMEN YAXON NETWORKS CO LTD
View PDF5 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In the embedded LINUX system, the debugging information (log) is the key input for analyzing and troubleshooting problems, and the debugging information of the device is mostly output through the physical serial port for real-time collection and debugging, but there are several problems, one is the embedded The serial port resources of the device are limited. Once it is used for debugging information output, the serial port cannot be connected to peripherals at the same time, and can be used as an ordinary serial port (multiplexing is possible, but not at the same time); 2. The debugging information is directly output to the serial port in real time. , the information cannot be checked back; 3. When the program is released, the program needs to close the console log output to prevent the leakage of software information and illegal manipulation

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
  • Method and system for carrying out linux log management through virtual serial port
  • Method and system for carrying out linux log management through virtual serial port

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The present invention will be further described in conjunction with the accompanying drawings and specific embodiments.

[0027] As a specific example, such as figure 1 Shown, a kind of method of carrying out liunx log management by virtual serial port of the present invention comprises the following steps:

[0028] Step 1: Configure the system kernel startup parameters, close the occupation of the physical serial port by the system log output, the specific system configuration method is as follows, setenv bootargs mem=128M root= / dev / mtdblock2 rootfstype=jffs2 mtdparts=hi_sfc:1M(boot), 3M (kernel), 13M (rootfs),

[0029] Step 2: Create a virtual serial port unit in the system kernel space, the virtual serial port unit has common serial port characteristics externally, and has a ring buffer inside the virtual serial port unit,

[0030] Step 3: Set up a log information acquisition unit, the log information acquisition unit is connected to the virtual serial port unit, o...

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 relates to the technical field of computers, in particular to a method and system for carrying out linux log management through a virtual serial port. The method for carrying out linux log management through the virtual serial port mainly comprises the steps that a log information obtaining unit is set and connected with a virtual serial port unit, the log information is obtained from the virtual serial port unit and managed, the virtual serial port unit is open, a TIOCCONS system of the LINUX calls the redirection application log to the virtual serial port unit, accordingly, debugging information of an application program is written into a ring buffer area of the virtual serial port, the log information obtaining unit obtains the log information from the ring buffer area of the virtual serial port unit, obtains the core log from a core log buffer area and manages the log information, and further storing and forwarding are carried out. The method and system are high in universality and easy to operate, a physical serial port is completely liberated, the obtaining of the log information is complete and thorough, a frame of a core does not need to be modified, and the linux core is not contaminated.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and a system for managing liunx logs through a virtual serial port. Background technique [0002] In the embedded LINUX system, the debugging information (log) is the key input for analyzing and troubleshooting problems, and the debugging information of the device is mostly output through the physical serial port for real-time collection and debugging, but there are several problems, one is the embedded The serial port resources of the device are limited. Once it is used for debugging information output, the serial port cannot be connected to peripherals at the same time, and can be used as an ordinary serial port (multiplexing is possible, but not at the same time); 2. The debugging information is directly output to the serial port in real time. , the information review cannot be performed; 3. When the program is released, the program needs to close the console log ou...

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): G06F13/10
CPCG06F13/105
Inventor 任赋陈华云郑福弟李培明许宁
Owner XIAMEN YAXON NETWORKS CO LTD