【正文】
武 漢 工 業(yè) 學(xué) 院畢業(yè)設(shè)計(論文)設(shè)計題目:TCP/IP 與 RS232 協(xié)議轉(zhuǎn)換器的設(shè)計(硬件)姓 名: 學(xué) 號: 院 (系): 專 業(yè): 指導(dǎo)教師: 2020 年 6 月 13 日武漢工業(yè)學(xué)院 2020 畢業(yè)論文第 1 頁 共 28 頁摘 要本次畢業(yè)設(shè)計的課題是“TCP/IP與RS232協(xié)議轉(zhuǎn)換器的設(shè)計” ,主要以ARM7系列的S3C44BOX微處理器和RTL8019AS網(wǎng)絡(luò)接口芯片等構(gòu)建嵌入式系統(tǒng),移植uClinux,并在RH Linux 90和uclinux為ARM 處理器提供的交叉開發(fā)工具下,完成基于TCP/IP協(xié)議的串口/以太網(wǎng)數(shù)據(jù)轉(zhuǎn)換設(shè)備的開發(fā)。該設(shè)備支持服務(wù)器和客戶機模式, 為傳統(tǒng)串口設(shè)備通過標準TCP/IP協(xié)議接入Inter提供了一種低成本解決方案。本文主要描述了單串口以太網(wǎng)協(xié)議轉(zhuǎn)換,實現(xiàn) RS232 串口數(shù)據(jù)流的收/發(fā)控制,封裝/拆封串口幀,并通過 TCP/IP 協(xié)議轉(zhuǎn)換模塊將以太網(wǎng)發(fā)送緩沖區(qū)的串口幀封裝在 UDP 包中,并傳給 IP 層;同時,接收以太網(wǎng)數(shù)據(jù)幀并向上層層解包,分離應(yīng)用層數(shù)據(jù),然后數(shù)據(jù)的解析處理交由串口發(fā)送模塊完成,實現(xiàn) RS232 串口流與以太網(wǎng)端口流的透明轉(zhuǎn)換。 關(guān)鍵詞 :串口 ;以太網(wǎng);S3C44BOX;RTL8019AS;TCP/IP ;uclinux ;武漢工業(yè)學(xué)院 2020 畢業(yè)論文第 2 頁 共 28 頁AbstractThis graduation project topic is “Serial port/Ether data transfer based on uClinux operation system ”, Embedded system based on ARM7 MCU S3C44BOX and work interface chip RTL80 1 9AS is developed,On which uClinux operation system is ported.Serial port/Ether data transfer device through TCP/IP protocol is developed under RH Linux 9.0 and uClinux cross envelopment tools for ARM.Server and client mode are supported.It provides a low—cost solution for traditional serial—interfaced equipment to connect with the Inter.This article describes the single serial port / Ether data transfer by TCP/IP protocol . It realizes RS232 serial data stream receive /transfer , Packaging / unsealed serial frame. Under the TCP protocol conversion module, these data could be sent serial UDP packet encapsulation in Ether frame buffer , and transmit IP layer。 or could be received through receiving Ether data frames to layer on the package, separating the application layer data. Implementation RS232 serial port / Ether port data flow transparent transfer.Key words Serial port;Ether;S3C44BOX;RTL8019AS;TCP/IP 。 uclinux武漢工業(yè)學(xué)院 2020 畢業(yè)論文第 3 頁 共 28 頁目 錄摘 要 .........................................................................................................................................................1ABSTRACT...............................................................................................................................................2前 言 ...........................................................................................................................................................4一 設(shè)計概述 ...............................................................................................................................................5 設(shè)計要求 .........................................................................................................................................5 系統(tǒng)結(jié)構(gòu)框圖 .................................................................................................................................5二 模塊電路的介紹 ...................................................................................................................................7 主控制器 S3C44BOX ......................................................................................................................7 TCP/IP 協(xié)議轉(zhuǎn)換模塊 ..................................................................................................................8 串口收發(fā)控制模塊 ...........................................................................................................................8 MAX232 接口電路 ............................................................................................................................8 以太網(wǎng)接口控制芯片 RTL8019AS..................................................................................................8三. 系統(tǒng)硬件選型 .....................................................................................................................................9 協(xié)議轉(zhuǎn)換處理 CPU 選擇 .................................................................................................................9 S3C44B0X 的引腳分析及系統(tǒng)配置電路 ........................................................................9 串口引腳描述及其與 S3C44B0X 的接口引腳描述 ......................................................10 電源電路 .......................................................................................................................11 晶振電路與復(fù)位電路 ...................................................................................................12 實時時鐘電路 ...............................................................................................................14 FLASH 存儲器接口電路 .....................................................................................................