博碩士論文 110327007 詳細資訊




以作者查詢圖書館館藏 以作者查詢臺灣博碩士 以作者查詢全國書目 勘誤回報 、線上人數:110 、訪客IP:3.129.23.30
姓名 楊中毅(Chung-Yi Yang)  查詢紙本館藏   畢業系所 光機電工程研究所
論文名稱 Arm Cortex-M4 物聯網物端單板電腦及其乙太網路韌體開發
(Arm Cortex-M4 IoT Single Board Computer and its Ethernet Firmware Development)
相關論文
★ CIS數位影像處理平台之建構★ 微電鍍成長速度最佳化與影像監控
★ 橢圓辨識演算法之最佳化與誤差分析★ 頻率響應分析儀實作
★ 分散式驅動器開發★ 超音波定位平台原型開發
★ 地磁感測儀研發★ 雙頻式超音波測距系統之最佳化研究
★ 鋰電池殘電量測系統及校正★ 影像壓縮網路攝影平台
★ 智慧型網路攝影平台★ 無扭力計跑步機跑者步態量測
★ ESEMS太空氣象科學酬載叢集★ 影像辨識測試平台的開發
★ 智慧型網路攝影機開發平台★ 可補償高精度三軸地磁量測平台
檔案 [Endnote RIS 格式]    [Bibtex 格式]    [相關文章]   [文章引用]   [完整記錄]   [館藏目錄]   至系統瀏覽論文 ( 永不開放)
摘要(中) 為促進物聯網領域的發展,本研究設計一套完整的物聯網物端開發平台,提供硬體單板電腦與軟體開發環境,以協助縮短物聯網應用的開發和部署時程。

硬體單板電腦設計採用Arm Cortex-M4架構微控制器作為核心,配備NOR快閃記憶體儲存系統與乙太網路連網介面。軟體方面使用C語言開發環境,並規劃分層模組化專案架構,使用GNU GCC工具鏈與Makefile建構應用專案,並提供一系列開發輔助工具。

為簡化開發流程,本研究設計在系統上程式設計 (In-System-Programming, ISP) 燒錄功能,實現主機端命令列燒錄工具與微控制器端啟動載入器程式。主要包含兩大功能:UART ISP,可透過與主機端的連接進行韌體更新;Flash IAP,透過LittleFS嵌入式檔案系統管理儲存空間,能夠從板載儲存系統載入開機程式。

為賦予單板電腦連網能力,設計乙太網路實體層、媒體存取控制層驅動程式,並移植輕量化TCP/IP協議堆疊lwIP,針對TCP、UDP等協議的連網功能進行了一系列測試,驗證其連網能力,以涵蓋多種可能的應用場景,最後對乙太網路線上更新 (Ethernet OTA) 功能進行概念性驗證。
摘要(英) In order to promote the development of Internet of Things (IoT), this study designs a complete IoT development platform, which provides a hardware single board computer and a software development environment to help shorten the development and deployment time of IoT applications.

The hardware single board computer is designed with Arm Cortex-M4 architecture microcontroller as the core, equipped with NOR flash memory storage system and Ethernet interface. The software uses the C language development environment, and plans a hierarchical modular project structure, using the GNU GCC toolchain and Makefile to construct application projects, and provides a series of development aids.

In order to simplify the development process, this study designs the In-System-Programming (ISP) programming function, which realizes the host-side command line programming tool and the microcontroller-side bootloader program. It consists of two main functions: UART ISP, which allows firmware updating through the connection with the host side, and Flash IAP, which manages the storage space through the LittleFS embedded file system and allows the boot program to be loaded from the on-board storage system.

In order to provide single board computers with networking capabilities, I designed Ethernet physical layer and media access control layer drivers, and ported lwIP, a lightweight TCP/IP protocol stack, and conducted a series of tests on TCP, UDP, and other protocols to validate their networking capabilities to cover a wide range of possible application scenarios, and finally conducted a conceptual validation of the Ethernet OTA function. Finally, the Ethernet Over-the-Top (OTA) feature was proof-of-concept.
關鍵字(中) ★ 物聯網
★ 啟動載入器程式
★ 在應用上程式設計
★ 乙太網路
★ lwIP
關鍵字(英) ★ IoT (Internet of Things)
★ Bootloader
★ IAP (In-Application-Programming)
★ Ethernet
★ lwIP
論文目次 摘要 I
Abstract II
致謝 III
目錄 IV
圖目錄 VIII
表目錄 XII
一、緒論 1
1-1 研究動機與目的 1
1-2 文獻回顧 3
1-3 研究構想 4
1-4 論文組織架構 5
二、理論及技術背景 6
2-1 物聯網 6
2-1-1 基本組成 7
2-1-2 通訊類型 9
2-1-3 網路模型 10
2-2 韌體更新機制 12
2-3 即時作業系統 13
2-4 嵌入式檔案系統 16
2-5 乙太網路 17
2-5-1 乙太網路實體層 18
2-5-2 乙太網路媒體存取控制層 19
2-5-3 媒體獨立介面 19
三、物聯網物端開發平台系統設計 21
3-1 簡介 21
3-2 物聯網單板電腦規格 22
3-3 硬體系統 24
3-3-1 硬體功能方塊 24
3-3-2 雙核處理架構 25
3-3-3 儲存系統 26
3-3-4 乙太網路 27
3-3-5 輸出輸入埠 27
3-3-6 硬體使用介面 29
3-4 軟體系統 31
3-4-1 軟體開發環境 31
3-4-2 嵌入式檔案系統 - LittleFS 32
3-4-3 TCP/IP 協議堆疊 - lwIP 32
3-4-4 即時作業系統 - FreeRTOS 32
3-4-5 追蹤分析工具 - Segger SystemView 33
四、裝置韌體更新系統設計與驗證 34
4-1 簡介 34
4-2 系統規劃 35
4-2-1 硬體功能方塊規劃 35
4-2-2 軟體功能方塊規劃 36
4-2-3 記憶體佈局規劃 37
4-2-4 通訊狀態機規劃 38
4-2-5 通訊封包格式規劃 39
4-2-6 通訊命令規劃 40
4-3 微控制器端 - Bootloader 實現 41
4-3-1 軟體分層設計 42
4-3-2 嵌入式檔案系統移植 43
4-3-3 重置後的程式運行流程 45
4-3-4 執行權轉交 46
4-3-5 流程圖 47
4-4 主機端 - 命令列燒錄工具實現 48
4-4-1 使用介面 49
4-4-2 命令列處理 50
4-4-3 燒錄格式解析器 50
4-4-4 封包收發管理器 51
4-4-5 系統狀態機 51
4-4-6 PyPI 軟體發布 51
4-5 微控制器端與主機端間通訊 52
4-5-1 燒錄至微控制器內部快閃記憶體 52
4-5-1 燒錄至擴充儲存系統 53
4-6 測試與功能驗證 54
4-6-1 主機端燒錄工具命令測試 54
4-6-2 主機端燒錄至單板電腦內部快閃記憶體測試 54
4-6-3 主機端燒錄至單板電腦擴充儲存系統測試 54
4-6-4 微控制器端開機測試 55
五、乙太網路連網系統設計與驗證 57
5-1 簡介 57
5-2 乙太網路實體層電路設計 58
5-3 乙太網路驅動程式設計 60
5-3-1 媒體存取控制層驅動程式設計 60
5-3-2 實體層驅動程式設計 62
5-3-3 乙太網路直接記憶體存取 63
5-3-4 資料轉移過程 67
5-4 TCP/IP 協定堆疊 - lwIP 移植 68
5-4-1 lwIP 簡介 68
5-4-2 硬體及編譯環境相關移植 cc.h 69
5-4-3 lwIP系統時間設定 71
5-4-4 TCP/IP協議堆疊 lwIP 與MAC間介面 72
5-4-5 lwIP配置檔lwipopts.h 73
5-5 測試與功能驗證 76
5-5-1 MAC Loopback 測試 76
5-5-2 RMII 測試 77
5-5-3 PHY Loopback 測試 79
5-5-4 Ethernet Frame 送收測試 81
5-5-5 PING 測試 84
5-5-6 UDP 測試 86
5-5-7 TCP 測試 92
六、結論與未來展望 98
6-1 本文貢獻 98
6-2 未來展望 98
參考文獻 99
附錄一、單板電腦電路設計 101
附錄二、ASA-BUS 匯流排介面 104
參考文獻 [1] Farooq, M. U. et al. “A Review on Internet of Things (IoT).” International Journal of Computer Applications 113 (2015): 1-7.
[2] Li L, Guo M, Ma L, Mao H, Guan Q. Online Workload Allocation via Fog-Fog-Cloud Cooperation to Reduce IoT Task Service Delay. Sensors. 2019; 19(18):3830. https://doi.org/10.3390/s19183830
[3] Syed AS, Sierra-Sosa D, Kumar A, Elmaghraby A. IoT in Smart Cities: A Survey of Technologies, Practices and Challenges. Smart Cities. 2021; 4(2):429-475. https://doi.org/10.3390/smartcities4020024
[4] Ghazal TM, Hasan MK, Alshurideh MT, Alzoubi HM, Ahmad M, Akbar SS, Al Kurdi B, Akour IA. IoT for Smart Cities: Machine Learning Approaches in Smart Healthcare—A Review. Future Internet. 2021; 13(8):218. https://doi.org/10.3390/fi13080218
[5] F. Guo, F. R. Yu, H. Zhang, X. Li, H. Ji and V. C. M. Leung, "Enabling Massive IoT Toward 6G: A Comprehensive Survey," in IEEE Internet of Things Journal, vol. 8, no. 15, pp. 11891-11915, 1 Aug.1, 2021, doi: 10.1109/JIOT.2021.3063686.
[6] N. Tewari, N. Deepak, M. Joshi and J. S. bhatt, "Comparative Study of IoT Development Boards in 2021: Choosing right Hardware for IoT Projects," 2021 2nd International Conference on Intelligent Engineering and Management (ICIEM), London, United Kingdom, 2021, pp. 357-361, doi: 10.1109/ICIEM51511.2021.9445290.
[7] 陳信合,「IoT 開發平台-ASA 匯流排單板電腦開發」,國立中央大學,光機電工程碩士班,碩士論文,2017。
[8] 朱立宇,「物聯網裝置函式庫及開發環境」,國立中央大學,光機電工程碩士班,碩士論文,2020。
[9] 呂中祐,「物聯網機器人電控系統關鍵模組開發」,國立中央大學,光機電工程碩士班,碩士論文,2021。
[10] 劉文浩,「邊緣運算用單板電腦及函式庫開發」,國立中央大學,光機電工程碩士班,碩士論文,2022。
[11] IEEE Standard for Ethernet," in IEEE Std 802.3-2018 (Revision of IEEE Std 802.3-2015) , vol., no., pp.1-5600, 31 Aug. 2018, doi: 10.1109/IEEESTD.2018.8457469.
[12] RMII consortium, RMII™ Specification, 1998.
[13] Nuvoton Technology Corporation, M487KMCAN Datasheet, 2023. [Online]. Available: https://www.nuvoton.com/products/microcontrollers/arm-cortex-m4-mcus/m487-ethernet-series/m487kmcan/
[14] Microchip Technology Inc., ATmega16U4 Datasheet, 2016. [Online]. Available: https://www.microchip.com/en-us/product/ATMEGA16U4
[15] Winbond Electronics Corporation, W25Q128JV Datasheet, 2021. [Online]. Available: https://www.winbond.com/hq/product/code-storage-flash-memory/serial-nor-flash/index.html?__locale=zh_TW&partNo=W25Q128JV
[16] Texas Instruments Incorporated, DP83848C Datasheet, 2015. [Online]. Available: https://www.ti.com/product/DP83848C
[17] littlefs-project, littlefs project, https://github.com/littlefs-project/littlefs
[18] Dunkels, Adam., Design and implementation of the lwIP TCP/IP stack., Swedish Institute of Computer Science. 2., 2001
[19] Richard Barry, “Mastering the FreeRTOS™ Real Time Kernel A Hands-On Tutorial Guide”, December 4th, 2016, https://www.freertos.org/Documentation/RTOS_book.html
[20] SEGGER Microcontroller GmbH, SystemView User Manual (UM08027), https://www.segger.com/downloads/systemview/
[21] Joseph Yiu, The Definitive Guide to Arm Cortex-M3 and Cortex-M4 processors, Third Edition, 2013
[22] Intel, Intel Hexadecimal Object File Format Specification, 1988
[23] Texas Instruments Incorporated, AN-1469 PHYTER Design & Layout Guide, 2013
[24] cy023,軟體開發環境整合專案樣板,https://github.com/cy023/rtox
[25] cy023,裝置韌體更新系統原始碼,https://github.com/cy023/NuM487BOOT
[26] cy023,乙太網路連網系統原始碼,https://github.com/cy023/NuM487ETH
指導教授 江士標(Shyh-Biau Jiang) 審核日期 2023-7-24
推文 facebook   plurk   twitter   funp   google   live   udn   HD   myshare   reddit   netvibes   friend   youpush   delicious   baidu   
網路書籤 Google bookmarks   del.icio.us   hemidemi   myshare   

若有論文相關問題,請聯絡國立中央大學圖書館推廣服務組 TEL:(03)422-7151轉57407,或E-mail聯絡  - 隱私權政策聲明