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

A serial communication error detection and correction method and device

A serial port communication, error detection and correction technology, applied in the field of serial port communication, can solve the problem of being unable to locate the error location and correct the error, and achieve good universality, improve efficiency, and improve the effect of transmission efficiency

Active Publication Date: 2021-12-03
HUAZHONG UNIV OF SCI & TECH
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Aiming at the defects of the prior art, the object of the present invention is to provide a serial communication error detection and correction method and device, aiming to solve the problem that the traditional serial communication error detection method cannot locate the error location and correct the error

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 serial communication error detection and correction method and device
  • A serial communication error detection and correction method and device
  • A serial communication error detection and correction method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] 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 conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not constitute a conflict with each other.

[0038] Aiming at the deficiencies of the existing algorithm technology, the present invention adopts some bits of the serial port communication byte to calculate the check byte by designing a kind of check algorithm, and the check byte is checked by the judgment of the check byte at the receiving end. Error detection and error correction is performed on the received data, which overcomes the pro...

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 serial port communication error detection and correction method and device, belonging to the field of serial port communication. The present invention improves on the basis of the Hamming code, including: receiving a serial communication data frame, the serial communication data frame including two data bytes and a sending end check byte; forming the sending end check byte The two nibbles are the verification results of the first data byte and the second data byte respectively, and each bit of the first data byte and the second data byte has passed at least two bits of verification Check the bit; generate the check byte of the receiving end, and form each check bit of the check byte of the receiving end to generate according to one check bit of the data byte and the check byte of the sending end; according to the Check bytes at the receiving end for error detection and error correction. This overcomes the problem that the position of the traditional Hamming code check code is fixed and the overall length cannot be sent through the serial port, and can accurately correct the wrongly transmitted data, which is simple and reliable.

Description

technical field [0001] The invention belongs to the field of serial port communication, and more specifically relates to a serial port communication error detection and correction method and device. Background technique [0002] Serial port communication is a communication method often used in engineering, and its method is simple and reliable. One byte of serial port communication is 8 bits, and the serial port sends one byte at a time. The traditional error detection method of serial communication is to use the checksum, that is, to place a check digit in the last byte of each frame. The check digit usually uses a check method such as CRC, accumulation, etc., but the traditional check method It can only detect errors in the received data, but cannot find the location of the errored data, and cannot correct the erroneous part at the same time. In engineering applications, in order to prevent data errors due to environmental interference during serial communication transmi...

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): G06F11/10
CPCG06F11/10
Inventor 刘洋汤文翰孔德鑫赵金
Owner HUAZHONG UNIV OF SCI & TECH
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