Method and system for adjusting baud rate of serial port communication

A technology of serial communication and adjustment method, applied in the field of communication, can solve the problems of inconsistent baud rates and garbled codes at both ends of serial communication, and achieve the effect of avoiding data transmission errors

Inactive Publication Date: 2018-07-13
PHICOMM (SHANGHAI) CO LTD
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of the shortcomings of the prior art described above, the purpose of the present invention is to provide a method and system for adjusting the baud rate of serial communication, which is used to solve the problem of garbled characters at both ends of the serial communication due to inconsistent baud rates in the prior art

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 system for adjusting baud rate of serial port communication
  • Method and system for adjusting baud rate of serial port communication
  • Method and system for adjusting baud rate of serial port communication

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] Embodiments of the present invention are described below through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific implementation modes, and various modifications or changes can be made to the details in this specification based on different viewpoints and applications without departing from the spirit of the present invention.

[0029] It should be noted that the diagrams provided in this embodiment are only schematically illustrating the basic idea of ​​the present invention, and only the components related to the present invention are shown in the diagrams rather than the number, shape and shape of the components in actual implementation. Dimensional drawing, the type, quantity and proportion of each component can be changed arbitrarily during actual impleme...

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 provides a serial port communication baud rate adjusting method and system. The serial port communication baud rate adjusting method includes the steps that 1, the same baud rate is selected for the two ends of serial port communication; 2, clock frequency of a serial port receiving signal line and clock frequency of a sending signal line are obtained through a CDR, the obtained two clock frequencies are compared to obtain a comparison result, and adjustment information is fed back to the two ends of serial port communication according to the comparison result; 3, the two ends of the serial port communication adjust the clock frequencies of a serial port according to the feedback adjustment information. The serial port communication baud rate adjusting method further includes the steps that step 2 to step 3 are executed in a circulating mode till the comparison result is that the two clock frequencies are consistent to each other; after the comparison result is that the two clock frequencies are consistent to each other, the two ends of the serial port start communication. By means of the serial port communication baud rate adjusting method and system, the situation that the two ends of the serial port communication cause a data transmission error due to deviation of the two ends, so that a messy code is generated can be effectively avoided.

Description

technical field [0001] The invention relates to the communication field, in particular to a serial port communication baud rate adjustment method and system. Background technique [0002] Serial interface (Serial Interface, referred to as serial port) refers to the sequential transmission of data bit by bit, and its characteristic is that the communication line is simple, as long as a pair of transmission lines can realize two-way communication. The baud rate is a parameter to measure the communication speed, which represents the number of bits transmitted per second. The commonly used baud rates for serial communication are 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 43000, 56000, 57600, and 115200. The debug command is invalid and garbled characters are displayed. In actual use, the user needs to select the correct one among the above baud rates. When the baud rate of the debugging device is not known, the user needs to test many times to select the correct baud rate...

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): G06F13/42
CPCG06F13/4291
Inventor 何山
Owner PHICOMM (SHANGHAI) CO LTD
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