簡易檢索 / 詳目顯示

研究生: 蔡嘉育
CHIA-YU TSAI
論文名稱: 應用Ethernet虛擬化RS-232序列埠之系統設計
Application of Ethernet for Virtual Serial Port RS-232 System Design
指導教授: 許孟超
Mon‐Chau Shie
口試委員: 阮聖彰
none
林昌鴻
none
吳晉賢
none
學位類別: 碩士
Master
系所名稱: 電資學院 - 電子工程系
Department of Electronic and Computer Engineering
論文出版年: 2010
畢業學年度: 98
語文別: 中文
論文頁數: 69
中文關鍵詞: 序列埠網路作業系統視窗驅動程式嵌入式硬體
外文關鍵詞: RS-232, Windows Device Driver
相關次數: 點閱:213下載:2
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報

RS-232是美國電子工業聯盟(EIA)於1969年制定的序列資料通訊的介面標準,從過往數十年間至今仍扮演極為重要之通訊控制角色,舉凡各式自動控制設備或監控裝置,幾乎皆有其介面存在,並且是個人電腦PC與通訊控制工業應用上頗為廣泛的一種序列介面,然而受限於電器特性,RS-232介面被定義為一種在低速率序列通訊中增加通訊距離的單端標準,其應用多半使用於本地端 (Local)控制。

在網際網路興起後,遠端控制之應用與需求愈來愈普遍,工業界存在為數甚廣以RS-232介面為主之控制系統必須變更其原有軟硬體設計(甚至重新設計)方可銜接網際網路達成遠端控制之應用,對於某些既已存在的控制系統而言,相當於要替換掉整套系統,在實務上不符合成本效益,並非最佳策略。

因此本論文在視窗作業系統下實做一虛擬RS-232埠驅動程式,並以ARM-9平台實現Ethernet轉RS-232之嵌入式硬體,兩者組合成一無縫轉接系統(seamless adapter system),將RS-232埠通訊資料與Ethernet封包相互轉換傳遞,透過此一轉接系統可使過去原本使用RS-232介面之控制軟體及硬體裝置再利用,在無需變更任何原始設計的情況下,即可連結現代網路系統完成遠端監控之目的,使用者就如同過去在本地端使用實體RS-232介面控制硬體裝置一般便利。


The U.S. Electronic Industries Association (EIA) standard, RS-232, established in 1969 for serial data communication interface, from the past few decades, still plays an important role in the communication control covered the various types of automatic control equipment or monitoring devices. Furthermore, it is the most widely used as a serial interface in personal computer and communications industry. Limited by electrical properties, this interface is defined as a low-speed serial communication to increase distance single-ended standard applied mostly in a local control.

The rise of the Internet, the demands of remote control applications are more and more common in the industry. There is a wide number of RS-232 interface to the control system must be based changes to its original software and hardware design (or redesign) before convergence of the Internet to reach remote control application. For some already existing control system, to do this is the equivalent asked to replace the entire system. In practice, it is not cost-effective and not the best strategy.

Therefore, this thesis develops a virtual RS-232 port device driver under the Windows OS, and utilizes ARM-9 platform for conversion of between Ethernet and RS-232 embedded hardware, combined both into a seamless adapt system. Through this system can re-use the past original RS-232 interface control software and equipment. That means without the need to change any original design of the case can link modern network system to complete the purpose of remote control, the user just as in the past using local physical RS-232 interface to control hardware devices in convenient.

論文摘要 i Abstract ii 誌謝 iii 目錄 iv 圖索引 vi 表索引 1 第一章 緒論 1 1.1 研究動機 1 1.2 研究目標 2 1.3 研究背景 6 1.4 論文組織架構 8 第二章 相關知識 9 2.1 USB與RS-232 9 2.1.1 USB拓樸架構及傳輸 10 2.1.2 USB傳輸協定 11 2.1.3 USB與RS-232之比較 12 2.2 視窗作業系統與驅動程式 13 2.2.1 核心模式與使用者模式 13 2.2.2 視窗作業系統的組成 14 2.2.3 硬體抽象層 16 2.2.4 階層式驅動程式架構 16 2.2.5 WDM驅動程式的組成函式 17 2.2.6 WDM驅動程式必需具備的函式 18 2.2.7 WDM驅動程式可選擇使用的函式 19 2.2.8 驅動程式的基本工作 20 2.2.9 IO需求的處理與IO需求封包 (IRP) 21 2.2.10 IO需求的處理流程 23 2.2.11 視窗應用程式介面(Windows API)與驅動程式 24 2.3 ARM嵌入式硬體與Linux作業系統 25 2.3.1 嵌入式系統 25 2.3.2 ARM嵌入式處理器 25 2.3.3 嵌入式Linux系統 26 2.3.4 Linux系統之組成 27 第三章 應用Ethernet虛擬化RS-232序列埠之系統設計 28 3.1 虛擬序列埠裝置驅動程式之設計 28 3.1.1 DDK開發環境 28 3.1.2 DDK對序列埠驅動程式的支援 31 3.1.3 標準序列埠驅動程式的控制介面 33 3.1.4 虛擬序列埠轉換TCP/IP程式架構 36 3.1.5 虛擬序列埠轉換TCP/IP程式測試 37 3.1.6 保密選項 44 3.2 網路對RS-232序列轉換器之實現 45 3.2.1 發展板IO周邊介面 45 3.2.2 發展板記憶體周邊介面及發展板啟動機制 46 3.2.3 嵌入式Linux開發流程與發展環境 47 3.2.4 Linux應用程式流程圖 50 3.2.5 RFC2217命令格式 52 第四章 實驗結果 54 4.1 測試平台 54 4.2 系統測試方塊圖 54 4.3 成果展示 55 4.4 展示流程 57 第五章 結論和未來研究方向 59 5.1 結論 59 5.2 未來研究方向 60 參考文獻 61

[1] 許永和,USB2.0高速週邊裝置設計之實務應用(修訂版),全華科技,2008.
[2] 許永和,USB規格與理論剖析: 含無線USB與USB 3.0,全華科技,2009.
[3] Walter Oney, Programming the Windows Driver Model, Second Edition,
Microsoft Press, 2002.
[4] Chris Cant, Writing Windows WDM Device Drivers, R&D Books, 1999.
[5] Art Baker, Jerry Lozano, The Windows 2000 device driver book:
a guide for programmers, Prentice Hall, 2001.
[6] Jeff Prosise, Programming Windows with MFC, Second Edition,
Microsoft Press, 1999.
[7] 探矽工作室,ARM 原理與實作-以Soc 為例,宏友圖書,2003.
[8] 探矽工作室,嵌入式系統導論, 3e,學貫行銷,2004.
[9] 蔡孟哲,WDM Driver 程式設計實務,碁峰資訊,2004.
[10] 張帆、史彩成,Windows Device Driver Programming 驅動程式設計,
博碩文化,2009.
[11] ATMEL, AT91SAM9M10-EKES User Guide, ATMEL, 2010.
[12] ATMEL, AT91 ARM Thumb-based Microcontrollers, ATMEL, 2010.
[13] Philippe Gerum, Karim Yaghmour, Jon Masters, Gilad Ben-Yossef,
Building Embedded Linux Systems, Second Edition, O’REILLY, 2004
[14] Benjamin Mako Hill, Corey Burger, Jonathan Jesse, Jono Bacon,
The Official Ubuntu Book, Third Edition, Prentice Hall, 2008.
[15] Christopher Hallinan, Embedded Linux Primer: A Practical Real-World
Approach, Prentice Hall, 2006.
[16] 粘添壽著,Internet 網路原理與實務,旗標出版社,2003.
[17] Craig Hollabaugh, Embedded Linux - Hardware, Software, and Interfacing,Addison Wesley, 2002.
[18] Daniel P. Bovet, Marco Cesati, Understanding the Linux Kernel, Third
Edition, O’REILLY, 2005.
[19] Robert Love, Linux System Programming, O’REILLY, 2007.
[20] Jonathan Corbet, Alessandro Rubini, Greg Kroah-Hartman,
Linux Device Drivers, Third Edition, O’REILLY, 2005.
[21] 平田豐,Linux Device Driver Programming 驅動程式設計,
博碩文化,2009.
[22] S.Rodriguez、Fischer、Smolski,The Linux Kernel Primer,
上奇出版社,2006.
[23] Michael J. Donahoo, Kenneth L. Calvert, TCP/IP Sockets in C: Practical
Guide for Programmers, Elsevier Science Ltd, 2009.
[24] W. Richard Stevens, TCP/IP Illustrated, Vol. 1: The Protocols,
Addison-Wesley, 1994.
[25] Sameer Seth, M. Ajakumar Venkatesulu, TCP/IP Architecture, Design and
Implementation in Linux, John Wiley & Sons Inc., 2008.
[26] Mark E. Russinovich and David A. Solomon with Alex Ionescu,
Windows Internals, Fifth Edition, Microsoft Press, 2009.

QR CODE