基于ARM9的串口与网络转接系统的设计与实现
发布时间:2018-10-24 08:54
【摘要】:串行设备具有容易实现及方便维护的特点,并且有较好的传输特性,在工控设备中得到广泛使用。随着嵌入式技术和网络技术的迅猛发展,在一些应用场景中,需要将串行设备接入网络。因此,需要寻求一种方案,用来解决串行设备和网络之间的互联问题。 本文设计了串口与网络的转接系统,实现了数据在串口与网络间透明传输。系统对数据链路与RS-232串行链路之间的通信数据进行转换与传输,对来自网络的数据帧进行判断,转换成串行数据发送到串行设备上;处理来自串行设备的数据流,将其格式转换为在网络中传输的数据帧。 针对工控设备的实际需求,本文在s3c2410的硬件平台和嵌入式Linux的环境下,设计了系统总体方案,,以实现在RS-232链路与网络接口之间进行数据传输。在应用程序设计中,设计了数据通信和参数配置两个模块。数据通信模块中,在串口与网口间实现透明传输;在程序设计时采用信号量的同步机制,实现了系统的实时通信。参数配置模块移植Boa服务器,通过CGI程序设计,生成动态页面。用户通过浏览器在地址栏输入Web服务器的IP,对转接器进行管理,远程进行系统的参数配置。 最后对系统的功能、性能进行了测试。本文设计的转换器成本低廉、功能完善、性能优异,可满足工控设备的应用需求。
[Abstract]:Serial equipment is easy to realize and easy to maintain, and has better transmission characteristics, so it is widely used in industrial control equipment. With the rapid development of embedded technology and network technology, serial devices need to be connected to the network in some application scenarios. Therefore, a solution is needed to solve the problem of interconnection between serial devices and networks. In this paper, a serial port and network connection system is designed to realize the transparent transmission of data between serial port and network. The system converts and transmits the communication data between the data link and the RS-232 serial link, judges the data frame from the network, converts the serial data to the serial device, processes the data flow from the serial device, Converts its format to a data frame transmitted over a network. According to the actual demand of industrial control equipment, this paper designs the overall scheme of the system under the s3c2410 hardware platform and embedded Linux environment, in order to realize the data transmission between the RS-232 link and the network interface. In the application program design, two modules of data communication and parameter configuration are designed. In the data communication module, the transparent transmission is realized between the serial port and the network port, and the real-time communication of the system is realized by using the signal synchronization mechanism when the program is designed. Parameter configuration module transplant Boa server, through CGI program design, generate dynamic pages. The user manages the adapter through the IP, of the Web server input into the address bar in the browser, and the parameter configuration of the system is carried out remotely. Finally, the function and performance of the system are tested. The converter designed in this paper has the advantages of low cost, perfect function and excellent performance.
【学位授予单位】:华中科技大学
【学位级别】:硕士
【学位授予年份】:2012
【分类号】:TP334.7
本文编号:2290917
[Abstract]:Serial equipment is easy to realize and easy to maintain, and has better transmission characteristics, so it is widely used in industrial control equipment. With the rapid development of embedded technology and network technology, serial devices need to be connected to the network in some application scenarios. Therefore, a solution is needed to solve the problem of interconnection between serial devices and networks. In this paper, a serial port and network connection system is designed to realize the transparent transmission of data between serial port and network. The system converts and transmits the communication data between the data link and the RS-232 serial link, judges the data frame from the network, converts the serial data to the serial device, processes the data flow from the serial device, Converts its format to a data frame transmitted over a network. According to the actual demand of industrial control equipment, this paper designs the overall scheme of the system under the s3c2410 hardware platform and embedded Linux environment, in order to realize the data transmission between the RS-232 link and the network interface. In the application program design, two modules of data communication and parameter configuration are designed. In the data communication module, the transparent transmission is realized between the serial port and the network port, and the real-time communication of the system is realized by using the signal synchronization mechanism when the program is designed. Parameter configuration module transplant Boa server, through CGI program design, generate dynamic pages. The user manages the adapter through the IP, of the Web server input into the address bar in the browser, and the parameter configuration of the system is carried out remotely. Finally, the function and performance of the system are tested. The converter designed in this paper has the advantages of low cost, perfect function and excellent performance.
【学位授予单位】:华中科技大学
【学位级别】:硕士
【学位授予年份】:2012
【分类号】:TP334.7
【参考文献】
相关期刊论文 前8条
1 冯玮;;基于CS8900A的通信模块设计[J];电脑知识与技术;2010年33期
2 李海林,王美琴,高振明;基于Linux的802.11b无线局域网数据包捕获方法[J];计算机应用研究;2004年12期
3 胡国庆;;无线局域网技术及其应用[J];中国新通信;2007年13期
4 梁巨涛;;物联网 产业的高端市场[J];中国市场;2010年30期
5 盛志伟;刘仕筠;李群;;以太网数据包捕获与转发技术[J];微计算机信息;2006年34期
6 汪小澄;池诚;;基于S3C2410嵌入式系统的网络接口设计[J];微计算机信息;2007年14期
7 高小能;舒文超;;无线传感器网络与TCP/IP网络互联通信技术研究[J];微型机与应用;2011年05期
8 田茂;潘永才;;基于S3C2410的TFTP以太网通信设计与实现[J];现代电子技术;2008年06期
相关硕士学位论文 前2条
1 范炜;基于ARM的嵌入式多串口网络服务器的设计与实现[D];北京交通大学;2008年
2 戴帅;基于ARM-Linux的嵌入式HTTPS服务器的研究与实现[D];武汉理工大学;2010年
本文编号:2290917
本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/2290917.html