免费获取|
论文天下网
  • 论文天下网 |
  • 原创毕业论文 |
  • 论文范文 |
  • 论文下载 |
  • 计算机论文 |
  • 论文降重 |
  • 毕业论文 |
  • 外文翻译 |
  • 免费论文 |
  • 开题报告 |
  • 心得体会 |

当前位置:论文天下网 -> 计算机论文 -> 计算机论文

一个Linux下基于电话线路的数据通信程序的设计与实现

本文ID:4327 字数:13807,页数:29

下载地址 全文下载链接(充值:¥50.00元) 

包括论文,设计,论文字数:13807,页数:29

摘    要
本设计基于Linux操作系统,控制本地MODEM通过电话线网向异地终端机所带MODEM拨号,并实现两台MODEM之间数据传输,达到两台计算机之间数据通信的目的。 MODEM与计算机RS-232串行端口相连,Linux通过POSIX termios接口控制计算机串行端口,方便实现了对计算机串行端口的设置和数据读写。计算机(DTE)与MODEM(DCE)之间数据交换,以及计算机对MODEM的控制,就是计算机对串行端口的读写。
本文作者完成了对RS-232串行端的设置和读写操作,利用AT命令控制MODEM拨号,和一个文件传输协议,实现了两台PC机利用MODEM通过公用电话网,传送和接收文件。本设计旨在使没有安装网络的用户,利用56K MODEM,通过电话线网方便和对方传输数据。相比较Internet网络,电话线网更安全,分布更广泛。本设计就是利用了电话线网的广泛性和安全性。

关键词:Linux;串行端口;MODEM

The Design and Implementation of Data Transportation through Telephone Line in Linux
Abstract
The 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


目  录

1 引  言 2
1.1 设计背景 2
1.2 本设计的意义 2
1.3 设计方法 2
1.4 理论依据 2
2 设计理论依据 2
2.1 Linux 2
2.2 串行端口简介 2
2.2.1 串行通迅 2
2.2.2 RS-232-C 2
2.2.3 异步通迅 3
2.3 MODEM简介 4
2.3.1 MODEM 4
2.3.2 AT命令 4
3 系统开发环境 5
3.1 系统开发环境 5
3.2 gcc简介 5
4 程序的设计 6
4.1 设计概要 6
4.2 RS-232-C建立与打开 7
4.3 串口设置与读写 8
4.3.1 c_cflag控制项设置 8
4.3.2 c_iflag、c_lflag和c_oflag设置 9
4.3.3 c_cc控制字符设置 10
4.3.4 读写串口 11
4.4 MODEM的控制 12
4.4.1 MODEM的两种工作状态 12
4.4.2 DTE与DCE的握手 12
4.4.3 MODEM拨号连接 13
4.5 文件传输协议的设计 14
5 编码实现 16
5.1 串口初始化实现 16
5.2 串口读写的实现 17
5.3 MODEM初始化的实现 18
5.4 MODEM状态读取的实现 20
6 程序测试 20
6.1 串口传输文件测试 20
6.2 MODEM拨号连接并传输数据测试 21
结    论 21
参考文献 22
致    谢 23
声    明 24

相关论文
上一篇:Scheme解释程序的实现 下一篇:网络数据包分析工具的设计与开发
推荐论文 本专业最新论文
Tags:一个 Linux 基于 电话 线路 数据通信 程序 设计 实现 2009-07-21 15:14:18【返回顶部】

相关栏目

Delphi
ASP
VB
JSP
ASP.NET
VB.NET
java
VC
pb
VS
dreamweaver
c#.net
vf
VC++
计算机论文


关于我们 | 联系方式 | 论文说明 | 网站地图 | 免费获取 | 钻石会员 | 原创毕业论文

 

论文天下网提供论文检测,论文降重,论文范文,论文排版,网站永久域名WWW.GEPUW.NET

本站部分文章来自网友投稿上传,如发现侵犯了您的版权,请联系指出,本站及时确认并删除  E-mail: 893628136@qq.com

Copyright@ 2009-2022 GEPUW.NET 论文天下网 版权所有