《毕业设计(论文)-一个Linux下基于电话线路的数据通信程序的设计与实现》.doc

《毕业设计(论文)-一个Linux下基于电话线路的数据通信程序的设计与实现》.doc

一个Linux下基于电话线路的数据通信程序的设计与实现摘 要本设计基于Linux操作系统,控制本地MODEM通过电话线网向异地终端机所带MODEM拨号,并实现两台MODEM之间数据传输,达到两台计算机之间数据通信的目的。 MODEM与计算机RS-232串行端口相连,Linux通过POSIX termios接口控制计算机串行端口,方便实现了对计算机串行端口的设置和数据读写。计算机(DTE)与MODEM(DCE)之间数据交换,以及计算机对MODEM的控制,就是计算机对串行端口的读写。本文作者完成了对RS-232串行端的设置和读写操作,利用AT命令控制MODEM拨号,和一个文件传输协议,实现了两台PC机利用MODEM通过公用电话网,传送和接收文件。本设计旨在使没有安装网络的用户,利用56K MODEM,通过电话线网方便和对方传输数据。相比较Internet网络,电话线网更安全,分布更广泛。本设计就是利用了电话线网的广泛性和安全性。关键词:Linux;串行端口;MODEMThe Design and Implementation of Data Transportation through Telephone Line in LinuxAbstractThe purpose of the design is to control the local MODEM to dial remote terminal by telephone line base on Linux operating system. At the same time,it can make the data transmit between two MODEMs to achieve the purpose of data transportation. the MODEM is connected to the computer through the serial port RS-232. Linux can control the serial port of the computer by POSIX termios interface. That can carry out the setting and data reading/writing of the serial port, the data transmit between computers (DTE) and MODEM (DCE), and the control from the computer to the MODEM, namely, the reading/writing of the serial port from the computer. The author of this paper accomplishes the setting and reading/writing operation, using the AT commands to control the MODEM dialing, and a transport protocols for files. All of these make two PCs send and receive files from the public telephone line by using the MODEM. The design is intended to make the user who has not installed the network to transmit data with others by telephone lines using the 56k MODEM. Compared with the Internet, the telephone line is safer and widely distributed. The design makes use of the universality and the safety of the telephone line.Key words: Linux; serial port; MODEM目 录论文总页数:24页 TOC \o 1-3 \h \z \u HYPERLINK \l _Toc170534572 1 引 言 PAGEREF _Toc170534572 \h 2 HYPERLINK \l _Toc170534573 1.1 设计背景 PAGEREF _Toc170534573 \h 2 HYPERLINK \l _Toc170534574 1.2 本设计的意义 PAGEREF _Toc1705345

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档