资源描述:
《基于ARM和μCOSII的嵌入式TCPIP协议栈的研究设计》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、中南民族大学硕士学位论文基于ARM和(1C/OS-I啲嵌入式TCP/IP协议栈的研究设计姓名:刘永奎申请学位级别:硕士专业:计算机应用技术指导教师:蒋天发20100503摘要目前流行的嵌入式技术,在工控、智能楼宇、办公自动化等领域得到了广泛的应用。而随着网络技术的不断发展,嵌入式系统与网络的结合日益紧密。在嵌入式系统中壇加TCP/IP协议栈,以支持嵌入式设备接入网络,成为嵌入式系统的一个重耍发展方向。因此将嵌入式系统和网络通信技术结合起来研究,具有重耍的的研究意义和经济效益。木文以嵌入式实吋操作系统(1C/0S-II为基础,结合Luminary公司基
2、于Cortex・M3内核的LM3S8962芯片「,对嵌入式TCP/IP协议栈进行研究。(1)深入分析了Cortcx-M3内核的工作原理,并将其与ARM7内核进行比较,突出Cortex-M3内核的优势。(2)分析了实时操作系统MC/OS-II的工作原理,在深入理解后,编写相应的移植文件,成功地将
3、1C/OS・II移植到LM3S8962芯片上。在移植时,采用新的进入和退出临界区的方法,为后续的软件开发提供了很大的便利。(3)先根据TCP/IP文档,分析TCP/IPI■办议栈的基本原理。再根据嵌入式系统的特点,在不违背TCP/IP协议的原则下,对协议栈作了
4、相应的裁剪和修改,成功地在iiC/OS-IIh增加了TCP/IP协议栈。木TCP/IP协议栈实现了ARP协议、ICMP协议、IP协议、UDP协议和TCP协议的部分功能,BSD套接字部分接口函数,同时还编写了以太网控制器的驱动程序。最后通过简单的网络编程,测试木TCP/IPI■办议栈的正确性。ARM、pC/OS・II和TCP/IP协议栈一起构成了嵌入式系统的网络框架,为后续的研究和应用捉供了很好的平台。关键词:域入式系统;ARM处理器;gC/OS-II;移植;嵌入式TCP/IP协议栈ABSTRACTEmbeddedtechnologyisverypop
5、ularnow,whichhasbeenusedwidelyinindustrialcontrol,intelligentbuildings,officeautomationandotherfields.Withthedevelopmentofnetworktechnology,thecombinationofembeddedsystemandnetworkbecomesmoreandmoreclose.TheadditionofTCP/IPstacktoembeddedsystem,inordertoconnectembeddeddevicesto
6、network,whichhasbecomeanimportantdirectionofdevelopmentforembeddedsystem.So,ithasimportantstudysignificanceandeconomicbenefitstocombineembeddedsystemandnetworktechnologytoresearch.Inthispaper,onthebasisofembeddedreal-timeoperatingsystempC/OS-II,combinesLuminarycompanylastestpro
7、duct-LM3S8962whichbasesonCortex-M3kerneltoresearchembeddedTCP/IPstack.(1)DeeplyanalysetheworkprincipleofCortex-M3kernel,andcomparewithARM7kernel,highlightingtheadvantageofCortex-M3kernel・(2)Analyzetheworkprincipleofreal-timeoperatingsystem(iC/OS-11,afterin-depthunderstanding,wr
8、itecorrespondingportabledocument,andsuccessfullytransplantpC/OS-IItotheLM3S8962chip.Inthetransplantation,proposeanewmethodtoenterandexitcriticalsection.Thisprovidesagreatconveniencetothefollowedsoftwaredevelopment.(3)Firstly,analyzethebasicprincipleofTCP/IPstack,accordingtoTCP/
9、IPdocument.Secondly,accordingtothecharacterofembeddeds