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

Serial communication data processing analysis method

A data processing and analysis method technology, applied in the field of data transmission, can solve problems such as instability and unreliable serial communication, and achieve the effect of reducing misinterpretation

Inactive Publication Date: 2015-07-08
CSIC NO 710 RES & DEV INST
View PDF4 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] There are three ways of serial communication: RS232, RS422 and RS485, which are carried out in the form of byte stream, that is, each interruption indicates that a byte is successfully transmitted or received; however, due to the unreliability, Unstable problem, so it is necessary to provide a new serial communication data processing method

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
  • Serial communication data processing analysis method
  • Serial communication data processing analysis method
  • Serial communication data processing analysis method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The present invention will be described in further detail below in conjunction with specific examples.

[0020] A kind of novel serial port communication data processing analysis method of the present invention, concrete process is:

[0021] (1) Define the communication protocol

[0022] The serial port communication protocol generally includes several fields: frame header, user data and frame tail. Among them, the frame header includes preamble, frame length and frame number; user data corresponds to the data field; frame tail is the checksum.

[0023] (2) Circular FIFO (first in first out) ring buffer

[0024] The invention adopts the ring buffer as the data structure to store the data sent and received in the communication. A ring buffer is a first-in, first-out circular buffer that provides mutually exclusive access to the buffer to the communicating program. A ring buffer has a read pointer and a write pointer. The read pointer points to the readable data in th...

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 novel serial communication data processing analysis method. The novel serial communication data processing analysis method is capable of effectively improving the serial communication stability. The novel serial communication data processing analysis method includes that storing communication data in a cyclic first-in first-out annular buffer zone, extracting data of the buzzer zone in sequence, and rigidly detecting each domain (lead code, frame length, frame number, data domain and check-sum) in sequence to perfectly filter some packets with error domains and incomplete packets and accurately extract correct packets in chaos data so as to reduce the wrong reading for the messages due to wrong data extraction when reading data frames (messages).

Description

technical field [0001] The invention relates to a novel serial port communication data processing and analysis method, which belongs to the technical field of data transmission. Background technique [0002] In many engineering control applications at present, most of them adopt the master-slave system composed of PC and multiple single-chip microcomputers; the single-chip microcomputer mainly collects data, processes field signals, and drives the actuator; the PC centrally manages the single-chip microcomputer, Complete information display, data crunching and decision making to assign tasks. Between the PC and the single-chip microcomputer, data interaction needs to be completed through communication. Among many communication interfaces, serial port communication is more commonly used. [0003] There are three ways of serial communication: RS232, RS422 and RS485, which are carried out in the form of byte stream, that is, each interruption indicates that a byte is successfu...

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): G06F3/06G06F11/14G06F12/08
Inventor 吴永刚姚海涛李倩陈金花盖旗涛
Owner CSIC NO 710 RES & DEV INST
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