1 / 35
文档名称:

毕业论文基于STM32单片机的串口转网络设计.docx

格式:docx   大小:369KB   页数:35页
下载后只包含 1 个 DOCX 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

毕业论文基于STM32单片机的串口转网络设计.docx

上传人:小雄 2021/2/21 文件大小:369 KB

下载得到文件列表

毕业论文基于STM32单片机的串口转网络设计.docx

文档介绍

文档介绍:本科毕业设计
(2015 届)
题 目 基于STM32单片机的串口转网络设计
学 院 电子信息学院
专 业 电子信息工程
班 级
学 号
学生姓名
指导教师
完成日期 2015年1月
诚信承诺
我谨在此承诺:本人所写的毕业论文《基于STM32的串口转网络 设计》均系本人独立完成,没有抄袭行为,凡涉及其他作者的观点和 材料,均作了注释,若有不实,后果由本人承担。
承诺人(签名):
摘 要
本毕业设计主要研究串口转网络技术,继而实现串口与网络之间的数据传输。 本串口转网络模块将串口接收的串行数据通过LwIP轻型协议栈构造的TCP服务 器向外部TCP/IP网络传输网络数据。串口数据进行网络化处理过程是整个模块的 关键。
串口转网络模块主要包括以太网接口模块、处理器模块和串口数据处理模块 三部分。处理器模块主要完成在串口数据和以太网IP数据之间建立数据链路,通 过对以太网控制芯片的读写控制来实现对IP数据包的接收与发送。串口数据处理 模块主要完成对串口数据流的电平转换和数据格式的处理,判断串行数据的起始 位及停止位,完成对数据和校验位的提取。以太网接口部分模块由以太网接口部 分和以太网控制部分构成。以太网接口部分完成协议转换系统与以太网接口电路 控制的功能。整个模块结构紧凑,抗干扰能力强,性价比高,在工业等应用现场 有较高的使用价值。
关键词:串口转网络;LwIP; TCP/IP; TCP服务器
ABSTRACT
The main aim of this thesis is to design and realize UART-network protocol converter and then realize the two-way data transmission system between serial data and Ethernet data. The UART-network protocol converter module transform serial data to network data by TCP server on Light-Weight Internet Protocol. The process of serial data networking is the key to the whole module.
UART-network protocol converter module is divided into three parts: processor module> serial data processing module and Ethernet interface module. Processor module is mainly used to set up a data link layer between Ethernet data and serial data. It achieves the receiving and transmitting of IP data packets by controlling the read and write of Ethernet controller chip. Serial data processing module is mainly used to do level switch of the serial data stream, process the data format., determine the start bit and stop bit of serial data as well as getting check sum of data. The Ethernet interface module is made up of Ethernet interface part and Ethernet control part. The Ethernet interface module is used to protocol conversion as well as control Ethernet interface circuit. The whole module structure is compact and it has strong anti-interference ability as well as high cost performance. So, it has a higher value in the industrial filed.
Key words: UART-network protoc