欢迎来到天天文库
浏览记录
ID:31474927
大小:988.00 KB
页数:3页
时间:2019-01-11
《串行通信web通信转换系统的设计实现》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、第28卷第8期增刊仪器仪表学报V01.28No.82007年8月ChineseJournalofScientificInstrumentAug.2007串行通信与WEB通信转换系统的设计与实现*崔秀丽,姚兰,刘莹,于杰(东jE大学信息科学与工程学院沈阳110004)摘要:现有的以RS-232为标准的串行通信已经不能满足数据远程传输的需求。相比之下,以TCP/IP为核心的WEB通信技术得到了广泛应用。串行通信与WEB通信转换系统采用Cygnal公司生产的C8051F020单片机和Reahek公司的RTL8019AS芯片来构建硬件平台。通过分析现有的TCP/IP协议后,对其进行适当
2、的裁减,设计和实现适用于嵌入式系统的TCP/IP协议栈。系统主要功能足使串行设备的数据流,通过TCP/IP协议栈进行转换,使之成为TCP报文的字节流。反过来,对来自TCP报文的字节流进行分析,转换成串行数据送到相应的串VI设备。最后利用嵌入式TCP/IP协议栈实现一个嵌入式WEB服务器,用户可在网络上通过浏览器快捷、方便地查看串口设备的运行情况并对其发出相应的控制指令。关键词:嵌入式Internet;以太网;TCP/IP协议栈;串行通信;WEB通信DesignandimplementationofconversionsystembetweenserialcommunicationandW
3、EBcommunicationCuiXiu-li,YaoLan,LiuYing,YuJie(CollegeofInformationScienceandEngineering,NortheasternUniversity,Shenyang110004,China)Abstract:Theoriginalserialcommunicationcan’tmeettheneedofdatatransmissioninlong-distance.Incomparison,WEBcommunicationregardingTCP/IPasthecorehasbeenwidelyappl
4、ied.TheconversionsystembetweenserialcommunicationandWEBcommunicationisdesignedandimplemented.Cygnal8七itmicroprocessorandRTL8019lASEthernetcontroller.areadoptedinthesystemtobuildthehardwareplat—form.AftertheanalysisoftheexistingTCP/IPprotocolstack,itisreducedproperly,SOanembeddedTCP/IPprotocol
5、stackisdesignedandimplemented.ThefunctionofthesystemistoconverttheserialdatastreamfromtheserialequipmenttothebytestreamofTCPmessagethroughembeddedTCP/lPprotoc01stack.ConverselybyanalyzingthebytestreamofTCPmessage,itisconvertedtotheserialdata.Finally,aWEBserveriSimplementedbasedonembeddedT
6、CP/IPprotocolstack.UserscansetIPaddress,con—figureparametersofserialportviatheWEBbrowser,examinetherunningprocessesandsendcorrespond—ingcontrolcommandtotheserialequipment.Keywords:embeddedinternet;ethernet;TCP/IPprotocolstack;serialcommunication;WEBcommunica—tion单、使用灵活方便、数据传递可靠等优点,在数据采集和引I=
7、I实时控制系统中得到了广泛应用。但是随着计算机技术和控制技术的不断发展,原有的通信接口在通信速率和目前,在一些自动化等领域中,数据的传输大多采用RS-232,RS-485总线等串行通信。串行通信具有连接简*基金项目:国家重点基础研究计划(2006CE303003)资助项目通信距离上已经不能满足需求。相比之下,随着因特网的发展,以TCP/IP为核心的724仪器仪表学报第28卷WEB通信技术得到了广泛应用
此文档下载收益归作者所有