基于STM32的嵌入式web服务器的设计
发布时间:2018-10-14 13:10
【摘要】:随着集成半导体技术的飞速发展,嵌入式设备已经应用于我们的日常生活,LED电视机、变频空调已经进入了千家万户,智能家居的理念已深入人心,而且家用电子医疗器械也正进入人们的家庭生活中。面对家庭生活中不断增长的嵌入式设备,人们期待有一种廉价的通信环节方便于智能家居和远程治疗。同时,PC机的普及,极大地促进了网络通讯的发展,目前在全世界范围内已经形成了一个覆盖面积最大的internet网络。因此使用让家用嵌入式设备与internet网络互联的嵌入式web服务器成为了智能家居和远程医疗最佳的解决方法,它可以让嵌入式设备以最低的代价获得最大的网络资源。要使用嵌入式web服务器,嵌入式设备必须支持网络通信协议TCP/IP协议。Internet网络可以通过TCP/IP为嵌入式设备提供远程通讯、在线升级、访问internet资源等功能. 本文以STM32f107微控制器为主控芯片,利用其片内的以太网控制模块,结合μC/OS-Ⅱ操作系统以及LwIP协议栈,构建嵌入式web服务器。为了构建嵌入式web服务器,本文主要进行了以下相关工作:根据系统要求结合STM32控制芯片及其以太网控制模块构建硬件平台,并且完成硬件电路的设计;结合STM32控制器的Cortex-M3内核以及μC/OS-Ⅱ操作系统的内核特性,将μC/OS-Ⅱ操作系统移植到STM32控制器上来,为应用程序的设计提供多任务操作的支持;完善底层网络接口层的驱动程序,并将LwIP协议栈移植到μC/OS-Ⅱ操作系统上来;结合网络技术,使用LwIP的应用程序接口程序LwIP API编写相关的HTTP应用程序。在应用程序中,嵌入式web服务器会处理来自浏览器网页中的请求信息,并且将处理信息返回给网页,实现服务器与PC机上浏览器的信息交互。最后系统结合微控制器的其他片内资源及其外围电路进行以太网接口与其他通信接口的通信。 测试结果:在服务器的应用层设计的HTTP应用程序,实现了服务器与浏览器的信息交互,并结合微控制器的片内串行接口控制模块,实现了以太网接口与串行接口的数据通信。以上结果表明,以STM32系列CPU为代表的控制芯片,结合嵌入式TCP/IP协议栈可以实现嵌入式设备访问Internet网络的功能,为家用的嵌入式web服务器提供一种可行、廉价的解决方案。
[Abstract]:With the rapid development of integrated semiconductor technology, embedded devices have been applied to our daily life, LED TV sets, frequency conversion air conditioning has entered into thousands of households, the concept of smart home has been deeply rooted in the people. And household electronic medical devices are also entering people's family life. In the face of the growing embedded devices in the family life, people expect a cheap communication link to be convenient for smart home and remote therapy. At the same time, the popularity of PC has greatly promoted the development of network communication. At present, a internet network with the largest coverage area has been formed in the world. Therefore, the use of embedded web server, which interconnects home embedded devices with internet network, has become the best solution for smart home and telemedicine. It can enable embedded devices to obtain the largest network resources at the lowest cost. To use embedded web server, embedded devices must support network communication protocol TCP/IP protocol. Internet network can provide remote communication, online upgrade and access to internet resources for embedded devices through TCP/IP. In this paper, the STM32f107 microcontroller is used as the main control chip, and the embedded web server is constructed by using the Ethernet control module, the 渭 C / OS- 鈪,
本文编号:2270556
[Abstract]:With the rapid development of integrated semiconductor technology, embedded devices have been applied to our daily life, LED TV sets, frequency conversion air conditioning has entered into thousands of households, the concept of smart home has been deeply rooted in the people. And household electronic medical devices are also entering people's family life. In the face of the growing embedded devices in the family life, people expect a cheap communication link to be convenient for smart home and remote therapy. At the same time, the popularity of PC has greatly promoted the development of network communication. At present, a internet network with the largest coverage area has been formed in the world. Therefore, the use of embedded web server, which interconnects home embedded devices with internet network, has become the best solution for smart home and telemedicine. It can enable embedded devices to obtain the largest network resources at the lowest cost. To use embedded web server, embedded devices must support network communication protocol TCP/IP protocol. Internet network can provide remote communication, online upgrade and access to internet resources for embedded devices through TCP/IP. In this paper, the STM32f107 microcontroller is used as the main control chip, and the embedded web server is constructed by using the Ethernet control module, the 渭 C / OS- 鈪,
本文编号:2270556
本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/2270556.html