文档介绍:该【基于ARM简单嵌入式WEB服务器系统的设计 】是由【小果冻】上传分享,文档一共【17】页,该文档可以免费在线阅读,需要了解更多关于【基于ARM简单嵌入式WEB服务器系统的设计 】的内容,可以使用淘豆网的站内搜索功能,选择自己适合的文档,以下文字是截取该文章内的部分文字,如需要获得完整电子版,请下载此文档到您的设备,方便您编辑和打印。计算机工程实践设计说明书摘要severalgroupnumber,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,listcanmeasuredseveralgroupnumber,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,listcanmeasured17severalgroupnumber,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,listcanmeasured摘要工程实践教学环节是为了学生能够更好地稳固和实践所学专业知识而设置的,在本次工程实践中,我们以ARM体系结构与编程课程中所学知识为根底,对基于ARM的简单嵌入式WEB效劳器系统进行了简单设计。本设计利用ARM自带的WEB效劳器技术,来实现对嵌入式WEB效劳器系统的控制设计。该技术基于WEB效劳器之上,且用嵌入式WEB效劳器来实现对于网络的访问。本设计说明重点介绍了如下几方面的内容:1〕基于嵌入式WEB效劳器的HTTP协议;12〕Linux下的signal()函数的使用;3〕嵌入式WEB效劳器的工作原理;4〕ARM开发板上的SOCKET网络编程。关键词:ARM体系;嵌入式WEB效劳器;HTTP协议;SOCKET网络编程。目录目录第一章绪论 3第二章嵌入式WEB效劳器设计原理简介 〔DFD〕 6第三章嵌入式WEB效劳器设计流程 8第四章嵌入式WEB效劳器设计程序分析及实践 15参考文献 17计算机工程实践设计说明书severalgroupnumber,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,listcanmeasuredseveralgroupnumber,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,listcanmeasured17severalgroupnumber,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,,嵌入式系统技术已经成为了一个万众瞩目的焦点。目前已广泛应用于信息家电、数据网络、工业控制、医疗卫生、航空航天等众多领域。巨大的市场潜力,无穷的商机,吸引了各路英豪纷踵沓来。ARM单片机技术由于其微小的体积和极低的本钱,广泛的应用于家用电器、工业控制等领域中。在工业生产中,电流、电压、温度、压力和流量也都是常用的被控参数。ARM单片机控制嵌入式WEB效劳器系统,是利用ARM作为系统的主控制器,由linux下的vi编程,来实现对于嵌入式WEB效劳器的访问。本设计采用ARM技术,其具有集成度高,运算快速快,体积小、运行可靠,价值低廉的特点,适宜于绝大多数的控制过程。鉴于这样的重要性,我们打算设计一种基于ARM的嵌入式效劳器系统。,运用ARM体系结构与编程所学知识及查阅相关资料,完成嵌入式WEB效劳器的设计,到达理论知识与实践更好结合、提高综合运用所学知识和设计能力的目的。通过本次设计训练,可以使我们在根本思路和根本方法上对基于ARM的设计有一个比拟感性的认识,并具备一定程度的设计能力。、SOCKET网络编程。,编译WEB效劳器的驱动模块和应用程序,实现嵌入式WEB效劳器的设计。,了解一个实际的网络通讯应用程序整体设计,。在此根底上增加一些其他功能。在PC计算机上使用浏览器测试嵌入式WEB效劳器的功能。计算机工程实践设计说明书severalgroupnumber,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,listcanmeasuredseveralgroupnumber,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,listcanmeasured3severalgroupnumber,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,〕获取效劳器当前目录文件列表将效劳器当前目录下所有文件的信息发送给客户端,信息包括:文件名、大小、日期。计算机工程实践设计说明书severalgroupnumber,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,listcanmeasuredseveralgroupnumber,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,listcanmeasured17severalgroupnumber,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,listcanmeasured计算机工程实践设计说明书2〕获取指定文件将客户请求的文件发送给客户。3〕获取HTML类型文件将客户请求的HTML类型文件发送给客户。4〕获取纯文本文件将客户请求的纯文本发送给客户。5〕获取JPG图像文件将客户请求的JPG图像文件发送给客户。6〕获取GIF图像文件将客户请求的GIF图像文件发送给客户。7〕解析用户请求分析客户的请求,将请求信息解析为几个变量,包括:请求的命令、请求的文件名、请求的文件类型。〔DFD〕〔DFD〕计算机工程实践设计说明书severalgroupnumber,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,listcanmeasuredseveralgroupnumber,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,listcanmeasured5severalgroupnumber,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,,:-type:text/html3效劳器信息Server:ARMLinux-:0计算机工程实践设计说明书severalgroupnumber,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,listcanmeasuredseveralgroupnumber,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,listcanmeasured17severalgroupnumber,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,:建立TCP类型SOCKET在80端口进行监听连接请求。接收到连接请求,将请求传送给连接处理模块处理。并继续进行监听。计算机工程实践设计说明书severalgroupnumber,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,listcanmeasuredseveralgroupnumber,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,listcanmeasured7severalgroupnumber,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,〕发送当前目录文件列表信息将效劳器当前目录下所有文件的信息发送给客户端,信息包括:文件名、大小、日期。2〕发送HTML类型文件将客户请求的HTML类型文件发送给客户。3〕发送纯文本文件将客户请求的纯文本发送给客户。4〕发送JPG图像文件将客户请求的JPG图像文件发送给客户。5〕发送GIF图像文件将客户请求的GIF图像文件发送给客户。6〕解析客户请求HTTP协议头分析客户的请求,包括:,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,listcanmeasuredseveralgroupnumber,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,listcanmeasured17severalgroupnumber,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,。7〕客户连接处理解析Referrer和content_length字段值并调用客户请求解析函数。8〕发送HTTP协议数据头根据发送文件类型发送相应的HTTP协议头信息。计算机工程实践设计说明书severalgroupnumber,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,listcanmeasuredseveralgroupnumber,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,listcanmeasured9severalgroupnumber,thenwithb±a,=c,-2~3measurement,suchasproceedsofcvaluesareequalandequaltothedesignvalue,,b,andcvalueswhileonhorizontalverticalerrorsformeasurement,Generalinironanglecodebitatmeasurementlevelpointsgriderrors,omethylverticalboxcenterlinedistancefora,,tobverticalboxdistanceforb,、接口设计客户连接处理函数名:intHandleConnect(intfd)参数:、解析客户请求函数名:intParseReq(FILE*f,char*r)参数:参数1:文件流FILE结构指针,用于表示客户连接的文件流指针。参数2:字符串指针,待解析的字符串。、发送HTTP协议数据头函数名:intPrintHeader(FILE*f,intcontent_type)参数:参数1:文件流FILE结构指针,用于表示客户连接的文件流指针。用于写入HTTP协议数据头信息。参数2:信息类型,用于确定发送的HTTP协议数据头信息。、发送当前目录文件列表信息函数名:intDoDir(FILE*f,char*name)参数:参数1:文件流FILE结构指针,用于表示客户连接的文件流指针。用于写入目录文件信息数据。参数2:目录名,表示客户请求的目录信息。、发送HTML文件内容函数名:intDoHTML(FILE*f,char*name)参数:参数1:文件流FILE结