Font Size: a A A

The Research And Implementation Of Adaptive Algorithm For Serial Port Parameters Based On Linux

Posted on:2015-01-20Degree:MasterType:Thesis
Country:ChinaCandidate:B B LiFull Text:PDF
GTID:2268330428965054Subject:Microelectronics and Solid State Electronics
Abstract/Summary:PDF Full Text Request
Serial interface is the data communication equipment of computer, as well as the mostcommonly used data sending and receiving device of industrial production equipment and theinstrument. Serial communication has a lot of advantages, such as its easy to use, simple equipment,reliable data transmission, low cost. In industrial production, the requirement of data acquisition andreal-time control system is not high, but it needs the occasion of high stability and reliability. Withthe development of automation and intelligence control, the automatic matching algorithm of serialport parameters has become a focus research in the serial communication in recent years. On thebasis of baud rate adaptive, the paper adds to a research about serial port data bits, so as to get amore general serial port parameters adaptive algorithm.The paper studies several baud rate adaptive algorithms recently. According to thecharacteristics of the serial port parameters under Linux configuration, we compare the theoreticalanalysis and experimental about serial baud rate and data bits in different settings affect in the datatransmission case. The serial send port sends protocol file multiple times, and the receiving endmatch the baud rate by segment eigenvalues matching method. Then the receiver reconfigure theparameters including date bits, parity and stop bits as8N1, and complete a reception. We analyzethe parameters of all the transmitting end may be set to discuss the sequence of characters mayappear under the corresponding parameters. Then analyzed and classified the dates received fromthe receiving end according to the characteristics of characters. In this paper, the experiment provesthat the algorithm is effective and feasible, and it has good stability and can automatically match thecommonly used serial port parameters.In this paper, algorithm is implemented by C language and shell programming under Linux. Itcan completely match the serial port parameters including baud rate and data bits when the parityand stop bits is stationary. It provided a new adaptive technology of automatic identification databits on the basis of the baud rate adaptive. The algorithm provides a good solution in the case ofchanging baud rate and date bit in the communication. The algorithm provides a very importanttheoretical approach for industrial data transmission and control of low work rate and low real-timedemanding. At the same time, it also provides a theoretical basis for the automated control andproduction.
Keywords/Search Tags:Serial Communication, Parameters Patching, Baud Rate, Date Bits, The AdaptiveAlgorithm
PDF Full Text Request
Related items