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

A development method of embedded linux serial port driver based on blocking receiving mechanism

A serial port driver and embedded technology, which is applied in the field of Linux serial port driver development, can solve communication frame loss and other problems, achieve the effect of solving frame loss problem, improving data communication accuracy and real-time data processing performance

Active Publication Date: 2020-06-26
中电科鹏跃电子科技有限公司 +1
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] In order to overcome the deficiencies in the prior art, the present invention provides a method for developing an embedded Linux serial port driver based on a blocking receiving mechanism, which has high stability and strong real-time performance, and solves the problem of communication frame loss in the Linux serial port driver , and improve the real-time performance of serial data acquisition and processing

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
  • A development method of embedded linux serial port driver based on blocking receiving mechanism
  • A development method of embedded linux serial port driver based on blocking receiving mechanism

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] The present invention will be described in further detail below in conjunction with the accompanying drawings, so that the solutions recorded in the present invention can be more easily understood.

[0041] Such as Figure 1-Figure 2 As shown, the present invention discloses a method for developing an embedded Linux serial port driver based on a blocking receiving mechanism, and the method is implemented by adopting the following steps.

[0042] Step 1. The Linux serial port driver is designed with a character device framework, namely:

[0043]1) Define a structure file_operationsmyuart_fops, and add open, read, write, close, ioctl functions to the structure;

[0044] 2) Define the device name and register the device with the kernel;

[0045] 3) Define serial port registers and perform virtual address mapping, configure registers and pins;

[0046] 4) Declare the serial port sleep waiting queue, initialize it in the open function, and apply for the serial port receiv...

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 Linux serial port driver development and specifically provides a choke receiving mechanism-based embedded Linux serial port driver development method. The method comprises the steps of designing a Linux serial port driver program by using a character type device framework, designing a received data cache region, designing a read function choke reading mechanism, and designing a data packet real-time processing mechanism. The method effectively improves the real-time data processing performance of Linux serial port drivers and solves the problem of frame loss in communication in Linux serial port driver development technology; the stability his high and the instantaneity is great; the method is suitable for serial port communication of embedded Linux devices.

Description

technical field [0001] The invention relates to the technical field of Linux serial port driver development, and more specifically, relates to an embedded Linux serial port driver development method based on a blocking receiving mechanism. Background technique [0002] In recent years, with the rapid development of embedded systems, embedded Linux system occupies an important position in the field of embedded development because of its open source code and unique characteristics of the system itself. Although the Linux system itself has a lot of general device driver support, the specific development and application requires users to add their own programs (such as the combination of mechanisms, adding protocol analysis, etc.), and general device drivers are not applicable. The common technical method for real-time collection and processing of serial port data in most embedded devices is to use the development method of completing the collection of data packets in the driver...

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 Patents(China)
IPC IPC(8): G06F8/20
CPCG06F8/22
Inventor 张炜史志鹏安彬赫旭东徐衍胜宋立新
Owner 中电科鹏跃电子科技有限公司