一个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
您可能关注的文档
- 《毕业设计(论文)外文翻译_PLC技术讨论与未来发展》.doc
- 《毕业设计(论文)外文翻译_单片机介绍》.doc
- 《毕业设计(论文)外文翻译_基于WEB的新农村村政务系统设计》.doc
- 《毕业设计(论文)外文翻译_同步斩波器中谐波的减少》.doc
- 《毕业设计(论文)外文翻译_基于传感网的目标定位方法》.doc
- 《毕业设计(论文)外文翻译_应用模糊逻辑控制在Iraq-Turkey阴极保护重油》.doc
- 《毕业设计(论文)基于移动IP的路由优化技术》.doc
- 《毕业设计(论文)外文翻译_混凝土结构配筋设计》.doc
- 《毕业设计(论文)外文翻译_厚板多道焊的焊接热源校核》.doc
- 《毕业设计(论文)外文翻译_通过PHP访问MySQL》.doc
- 安徽省华师联盟2025-2026学年高三上学期1月质量检测生物试卷+答案.doc
- 安徽省华师联盟2025-2026学年高三上学期1月质量检测语文试卷+答案.doc
- 四川省绵阳南山中学实验学校2025-2026学年高三上学期1月月考数学含答案.doc
- 2026届辽宁省大连市高三上学期双基考试物理试卷+答案.doc
- 辽宁名校联盟2026年1月高三上期末联考质量检测化学含答案.doc
- 辽宁名校联盟2026年1月高三上期末联考质量检测生物含答案.doc
- 辽宁名校联盟2026年1月高三上期末联考质量检测英语含答案.doc
- 辽宁名校联盟2026年1月高三上期末联考质量检测政治含答案.doc
- 黑龙江省龙江教育联盟2026年1月高三上学期期末考试化学含答案.doc
- 黑龙江省龙江教育联盟2026年1月高三上学期期末考试生物含答案.doc
最近下载
- 爱登堡电梯BT303C电气图纸.pdf
- 天津市河东区2024-2025学年七年级上学期期末考试道德与法治试卷(含答案).pdf VIP
- KH2100型薄层色谱扫描仪 用户手册.doc VIP
- 中国大学MOOC《高等数学(二)》(国防科大学)慕课 章节测验期末考试答案.docx VIP
- 四川省南充市2024-2025学年高一上学期1月期末质量检测物理试题(含答案).pdf VIP
- 2025年度民主生活会、组织生活会批评与自我批评意见(100条)供参考.docx VIP
- 第二课礼仪与教化教案.doc VIP
- 劳务费、专家咨询费用发放申领表.doc VIP
- 英文学术写作实战(北大)大学MOOC慕课 客观题答案.docx VIP
- 8款火爆的流媒体直播APP总有1个适合你.docx VIP
原创力文档

文档评论(0)