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

Method and device for serial port data transmission

A serial port data and transmission method technology, applied in the field of serial port data transmission, can solve the problems of resource occupation and time increase, and achieve the effect of reducing intervention, reducing CPU resource occupation, and improving resource utilization efficiency

Active Publication Date: 2022-01-18
北京智云芯科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, if the data communication speed is relatively high, such as 1Mbps or even higher, the time spent by the CPU on receiving serial data will increase greatly, thus occupying precious resources for other computing tasks.

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 device for serial port data transmission

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in combination with specific embodiments and with reference to the accompanying drawings. It should be understood that these descriptions are exemplary only, and are not intended to limit the scope of the present invention. Also, in the following description, descriptions of well-known structures and techniques are omitted to avoid unnecessarily obscuring the concept of the present invention.

[0031] The serial port communication protocol stipulates that the transmission of each byte includes a start bit (low level) of 1 bit, data of N bits (N is 6, 7, 8, etc.), and optional parity bit , At least 1 bit stop bit (high level). Although the serial port protocol itself has certain flexibility, in actual use, it generally uses 1 bit start bit, 8 bit data bit, no parity bit, 1 bit stop bit, such a byte takes up 10 b...

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

A serial port data transmission method and device thereof, the method comprising: a serial port data sending unit sends data packet data; after each data packet is sent, then sends a certain length of idle bits; a serial port data receiving unit receives the data packet data and idle bits, and count the received idle bits; judge whether the packet data is received: when the number of idle bits is greater than a predetermined threshold, it is judged that the packet data has been sent, and the serial port data receiving unit sends The CPU initiates an interrupt request; otherwise, it continues to receive packet data. The invention adds extra idle bits after the data packet is sent, so that the serial port data receiving unit can detect the number of idle bits to determine whether a complete data packet is received, and if it is the serial port data receiving unit, it will send an interrupt request to the CPU. In this way, the intervention of the receiving CPU on the receiving process of the serial port is reduced, the occupation of CPU resources is reduced, and the resource utilization efficiency of the receiving unit is improved.

Description

technical field [0001] The invention relates to the communication field, in particular to a serial port data transmission method and device. Background technique [0002] Universal Asynchronous Serial UART (Universal Asynchronous Receiver / Transmitter) is a commonly used serial communication protocol, which is widely used in data communication between electronic devices. UART can use dedicated hardware handshake signals for data communication handshake between transceiver devices, but the hardware handshake method will increase some dedicated communication signals, which will increase the number of connections between transceiver devices, and its cost will be higher than not using The cost of the hardware handshake method is higher. Therefore, in many serial communication devices, in order to reduce cost and system complexity, hardware handshaking is often no longer used. [0003] In order for serial devices to perform data communication correctly, the two parties (or multi...

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): H04L69/06
CPCH04L69/03H04L69/06
Inventor 霍晓芳白彩云
Owner 北京智云芯科技有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More