基于stm32的嵌入式web服务器的设计

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

基于stm32的嵌入式web服务器的设计

摘要

随着社会的进步和发展,嵌入式系统的东西也渐渐融入了我们的生活当中,比如嵌入式WEB网络服务器,LED电视机等等。通过越来越多的人使用嵌入式系统,并且随着PC机在人群中的普及,我们开始越来越希望拥有一个系统可以远程控制和使用我们身边的设备,这里我们便有了我们现在的研究,那就是基于STM32的嵌入式WEB服务器的设计。

起初对这个设计的概念是比较模糊的,大致为通过网页和单片机互联,并且做到在TCP/IP,LWIP等协议的运行下,通过网页来控制单片机。

而现在,随着技术越来越成熟和合理,我们通过智能家居等等在TCP/IP的协议下进行远程的通讯,在线的升级和访问Internet等。

这篇文章,就是我们一STM32F4为平台所设计的WEB服务器。我们主要是通过LWIP的应用程序接口LWIP API编写HTTP程序。在我们所设计的程序中,WEB服务器会处理来自网页中的信息,发送给PC机,同样,PC机也可以给WEB服务器传送信息,使网页接受来自PC机的信息,实现了PC机和网页的信息交互。

关键字:STM32;嵌入式;WEB

ABSTRACT

With the progress and development of society, embedded systems are gradually integrated into our lives, such as embedded WEB network server, LED TV and so on. By more and more people use embedded system, and with the popularity of PC machines in the crowd, we began to increasingly want to have a system to and the use of the remote control and equipment around us. Here, we will have the we now study, which is based on STM32 embedded web server design.

At first, the concept of this design is relatively vague, roughly through the Internet and the Internet, and do in TCP/IP, LWIP and other protocols running through the web to control the microcontroller.

And now, as the technology is more mature and reasonable, we are through the smart home, etc. in the TCP/IP protocol for remote communications, online upgrade and access Internet, etc..

This article, is through the STM32F4 development board design of embedded WEB server. We mainly through the LWIP application program interface API LWIP to prepare the HTTP program. In the program, the web server will process the information from a web page, send to the PC. Similarly, PC can also to the web server sends information to pages to accept information from PC, realize the information interaction between the PC and web.

Key words: STM32;embedded;WEB

第一章绪论

1.1 课题的研究背景和意义

如今,随着智能手机,智能家居的出现,生活越来越走向了数字化,信息化的时代。生活越来越简单,而深入我们生活中的智能系统,嵌入式系统的功能越来越强大,也日益趋紧完美。并且嵌入式系统使我们的生活更加方便,例如,在冬天到来的时候,我们在回家的路上首先可以通过手机让屋子亮灯,然后开启空调,让电视打开,调到自己喜欢的一个台。这无疑是大大的简化了我们的生活,节约了我们时间之余,还能提高我们生活的效率。

到目前为止,人们对网络的要求不仅仅局限于通信,玩游戏,购物这么简单,Internet可以说现在是最廉价的网络,普及到了每一个人的身边。因此我们可以利用Internet作为WEB服务器的基础,这样,每家每户都可以引进嵌入式的智能家居系统。

简单稳定的嵌入式系统其实可以通过多种网络进行通信的,但是Internet反而是最适合嵌入式系统的。为什么呢?因为Internet通信距离长,范围大,是世界上最大的网络系统,毫不夸张的说,我们可以以Internet为介质来访问到到世界每一个角落,因此,我们也可以通过Internet在世界各地和嵌入式的系统进行通讯。另一方面,Internet上面丰富的资源也可以让网络化的嵌入式设备使用。

网络化嵌入式系统可以说是日后的一个趋势,尤其是他卓越的性能和廉价的制造会使越来越多的家庭都会应用到这种技术,今后普及嵌入式系统指日可待,所以我们这项课题研究责任重大。

1.2 嵌入式系统的发展趋势

从20世纪60年代开始,嵌入式系统开始了发展,到目前几年的不停完善,

相关文档
最新文档