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
CN111459707BActive Publication Date: 2021-12-03HUAZHONG UNIV OF SCI & TECH

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HUAZHONG UNIV OF SCI & TECH
Publication Date
2021-12-03

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

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