High-speed data transmission method for serial port equipment under embedded operating system

A data transmission method and operating system technology, applied in the field of embedded software development, can solve problems such as data packet loss

Active Publication Date: 2021-01-15
TIANJIN JINHANG COMP TECH RES INST
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the present invention is how to provide a high-speed data transmission method for serial devices under an embedded operating system to solve the problem of packet loss in high-speed transmission data driven by general SIO serial ports

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
  • High-speed data transmission method for serial port equipment under embedded operating system
  • High-speed data transmission method for serial port equipment under embedded operating system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] In order to make the purpose, content and advantages of the present invention clearer, the specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.

[0048] The invention belongs to a technical method for realizing high-speed serial port communication under an embedded operating system, and solves the problem that received bytes are easily lost when the baud rate of the serial port is greater than 1.5 Mbps under the embedded environment. The invention is based on the standard SIO interface driving model, improves its processing mode, and enhances the reliability of high-speed serial port data transmission under the embedded operating system.

[0049] To achieve the above object, the present invention takes the following technical measures:

[0050] S1. Increase the function of reading and writing serial port chip registers;

[0051] S2. Add a custom receiving buffer...

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 a high-speed data transmission method for serial port equipment under an embedded operating system, and belongs to the field of embedded software development. The method includes: adding a function of reading and writing a serial port chip register; adding a self-defined receiving cache into the serial port opening function; rewriting a serial port interrupt service function and a receiving function by adopting a mode of adding a special cache and one-time empty reading; registering the rewritten interrupt service function and the rewritten receiving function into an equipment driving list, or adding the rewritten interrupt service function and the rewritten receiving function into a serial port initialization list as callback functions; and rewriting the drive. The method is based on a standard SIO interface driving model, the processing mode of the method is perfected, the reliability of high-speed serial port data transmission under an embedded operating system is enhanced, the serial port chip driving program modified through the method can ensure that the problem of data loss does not occur during high-speed data transmission, and the method is easy toimplement, obvious in effect, stable and reliable.

Description

technical field [0001] The invention belongs to the field of embedded software development, and in particular relates to a high-speed data transmission method of a serial port device under an embedded operating system. Background technique [0002] Because of its simplicity, convenience, and low cost, the serial communication method is still widely used in the embedded electronics field, such as environmental monitoring, data acquisition, industrial control, financial interruption, touch screen and other industrial fields. With the rapid development of processors and the advent of the era of intelligent equipment and networking, the speed of serial communication is also required to be higher and higher, and the serial baud rate of 2Mbps has gradually become a trend. At present, the general SIO device driver provided in the embedded operating system supports most of the serial port chips on the market, but it is found in practice that when the serial port rate exceeds 1.5Mbps...

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/42G06F8/41H04L12/861
CPCG06F13/4282G06F8/41H04L49/90Y02D10/00
Inventor 唐亮
Owner TIANJIN JINHANG COMP TECH RES INST
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products