簡易檢索 / 詳目顯示

研究生: 郭春暉
Quach, Huy Xuan
論文名稱: 微控制器應用課程之網宇實體實驗室及自動評分系統
A cyber-physical and automatic grading system for microcontroller applications course
指導教授: 楊中平
Young, Chung-Ping
學位類別: 碩士
Master
系所名稱: 電機資訊學院 - 資訊工程學系
Department of Computer Science and Information Engineering
論文出版年: 2016
畢業學年度: 104
語文別: 英文
論文頁數: 94
外文關鍵詞: Cyber-physical, Virtual laboratory, Remote laboratory, Web-Socket, HTML5, E-learning
相關次數: 點閱:60下載:5
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  • Microcontroller Unit (MCU) teaching is popular and required in many engineering major, especially in Computer Science. In the Department of Computer Science and Information Engineering, National Cheng Kung University, Microcontroller Application Course is required for all undergraduate students. Commonly, there are more than 150 students each academic year, our Teaching Assistants also need to check the result and give the grade for each student every homework while the time and human resource is limited.
    We suggest using one embedded board to catch the homework result and send back to one server that check the result and show the interface animation to student. We prefer to use browser with HTML5 (or above) as the interface application. We choose Web Socket (RFC 6455) protocol to transfer result data between client and server. This is technology support full-duplex transferring between server and browser without any plug-in. This technology is suitable to use in this system.
    In this Cyber-physical system, we use a TI Launchpad MSP-EXP430F5539LP as practical board in our microcontroller unit course. Additional, we use Arduino Yún board as a signal capturing and controlling device, it have built-in Ethernet and Wi-Fi interfaces so that it could transfer data with server over internet.

    Abstract I Acknowledgement II Table of Contents III List of Tables VI List of Figures VII Chapter 1 Introduction 1 1.1 Motivation 1 1.2 System overview 2 1.3 Organization 4 Chapter 2 Background Technologies 5 2.1 WebSocket Protocol 5 2.1.1 Introduction 5 2.1.2 Protocol overview 6 2.1.3 WebSocket Protocol details 8 2.1.3.1 Handshaking 8 2.1.3.2 Data Frame format 12 2.1.4 WebSocket API 13 2.2 PHP Socket 15 2.3 Web Service - SOAP 17 2.4 Git 18 Chapter 3 Related Works 20 3.1 The issues of browser-based Cyber-physical system 20 3.2 Related research 21 Chapter 4 System Implementation 23 4.1 Hardware Architecture 23 4.1.1 System Architecture 23 4.1.2 Arduino Yún 25 4.1.3 TI Launchpad MSP430F5529LB 26 4.1.4 Arduino Yún and TI Launchpad MSP460F5529LP Connections 28 4.2 System Software Architecture 29 4.2.1 Arduino Yún 31 4.2.2 PHP Main server 33 4.2.3 Client application (Browser UI Interface) 35 4.2.4 GitLab server 36 4.2.5 .Net Build Server 37 4.3 Main Server 39 4.3.1 Socket Connection 45 4.3.2 Web services Connection 53 4.3.3 GitLab Control 53 4.3.4 Auto grading handler 54 4.4 Build Server 55 4.5 Arduino Yún Board 56 4.5.1 Signal capturing data transfer 60 4.5.2 UART Laboratories 60 4.5.3 Duty cycle measurement 60 4.5.4 Lcd simulation 62 4.6 Client Interface 69 4.7 Homework implement 70 4.7.1 Homework 1 70 4.7.2 Homework 2 74 4.7.3 Homework 3 76 Chapter 5 Experimental Results 80 5.1 The Experimental Model 80 5.1.1 Experimental Equipment 80 5.1.2 The Experimental Architecture 80 5.2 Experimental System Latency 84 5.3 Homework Experiment 88 Chapter 6 Conclusion and Future Work 90 6.1 Conclusion 90 6.2 Future Work 90 References 91

    [1] Chetz Cowell, Eileen Scanlon and Martyn Cooper, “Using Remote Laboratories to extend access to science and engineering” in Computers & Education, Elsevier vol. 38, no.1, pp.65-66, 2002.
    [2] The WebSocket Protocol, https://tools.ietf.org/html/rfc6455
    [3] The WebSocket API http://www.w3.org/TR/2011/WD-websockets-20110929/
    [4] The Long Polling and Streaming in Bidirectional HTTP, https://tools.ietf.org/html/rfc6202
    [5] Victoria Pimentel, Bradford G. Nickerson, “Communicating and Displaying Real-Time Data with WebSocket”, Internet Computing, IEEE, vol. 16, issue.4, pp.45-53, 2012.
    [6] Jang Feng-yan, Duan Hui-chuan, “Application research of WebSocket technology on Web tree component”, Information Technology in Medicine and Education (ITME), 2012 International Symposium on, IEEE, vol.2, pp.889-892, 2012.
    [7] Hypertext Transfer Protocol, https://tools.ietf.org/html/rfc2616
    [8] The Base16, Base32, and Base64 Data Encodings, https://tools.ietf.org/html/rfc464
    [9] Vanessa Wang, Frank Salim and Peter Moskovits, “The Definitive Guide to HTML5 Websocket”. New York, NY: Apress, 2013.
    [10] Socket, http://php.net/manual/en/book.sockets.php
    [11] Web Service Glossary, http://www.w3.org/TR/2004/NOTE-ws-gloss-20040211
    [12] Git-smc, https://git-scm.com/
    [13] Steven Frank Barrett,Daniel J. Pack, “Timing subsystem”, Microcontrollers Fundamentals for Engineers and Scientists, Maogan & Claypool Publishers, 2006
    [14] Nesimi Ertugrul, “Towards virtual laboratories: a survey of LabVIEW-based teaching/learning tools and future trends”, International Journal of Engineering Education 16, pp.171–180, 2000.
    [15] Gonzalo Farias, Robin De Keyser, Sebastián Dormido, and Francisco Esquembre , “Developing Networked Control Labs: A Matlab and Easy Java Simulations Approach”, IEEE Transactions on Industrial Electronics, vol. 57, no. 10, October 2010.
    [16] Dictino Chaos, Jesús Chacón, Jose Antonio Lopez-Orozco and Sebastián Dormido, “Virtual and Remote Robotic Laboratory Using EJS, MATLAB and LabVIEW”, MDPI,Sensor 2013, 2013.
    [17] DSMC, Open Remote Arduino Labs at HOU, Digital Systems and Media Computing (DSMC) Laboratory, Hellenic Open University, http://dsmc2.eap.gr/component/content/article/project/open-remote-arduino-labs-at-hou
    [18] Andrew Wessels, Mike Purvis, Jahrain Jackson and Syed (Shawon) Rahman , “Remote Data Visualization through WebSockets”, 2011 Eighth International Conference on Information Technology, IEEE, pp.1050-1051, 2011.
    [19] Bijin Chen, Zhiqi Xu, “A Framework for Browser-based Multiplayer Online Games using WebGL and WebSocket”, Multimedia Technology (ICMT) 2011 International Conference on, IEEE, pp.471-474, 2011.
    [20] Victoria Pimentel and Bradford G. Nickerson, “Communicating and Displaying Real-Time Data with WebSocket”, Internet Computing, IEEE, vol.16, issue.4, 2012
    [21] Lijing Zhang, Xiaoxiao Shen, “Research and Development of Real-time Monitoring System Based on WebSocket Technology”, Mechatronic Sciences, Electric Engineering and Computer (MEC), Proceedings 2013 International Conference on, IEEE, pp. 1955-1958,2013
    [22] Arduino Yún , http://www.arduino.cc/en/Main/ArduinoBoardYún?from=Products.ArduinoYÚN
    [23] Atmel AVR ATmega32U4, http://www.atmel.com/Images/7766s.pdf
    [24] TI Launchpad MSP430F5529LP, http://www.ti.com/ww/en/launchpad/launchpads-msp430-msp-exp430f5529lp.html
    [25] TI MSP430F5529, http://www.ti.com/lit/ds/symlink/msp430f5529.pdf
    [26] MSP430x5xx Family User's Guide. URL: http://www.ti.com/lit/ug/slau208m/slau208m.pdf
    [27] php-gitlab-api, https://github.com/m4tthumphrey/php-gitlab-api
    [28] libgit2 API, https://libgit2.github.com/libgit2/#v0.20.0
    [29] php-git2, https://github.com/libgit2/php-git
    [30] libgit2sharp, https://github.com/libgit2/libgit2sharp/
    [31] PHP-MySQLi, http://php.net/manual/en/book.mysqli.php
    [32] PHP-Sockets, http://php.net/manual/en/book.sockets.php
    [33] PHP-SoapClient, http://php.net/manual/en/class.soapclient.php
    [34] Git distributions, https://git.wiki.kernel.org/index.php/Interfaces,_frontends,_and_tools#gitlabhq
    [35] GitLab compare to other Git web Interfaces, https://github.com/gitlabhq/gitlab-public-wiki/wiki/Comparison-to-other-Git-web-interfaces
    [36] Atmel AVR ATmega32U4 Full, http://www.atmel.com/Images/Atmel-7766-8-bit-AVR-ATmega16U4-32U4_Datasheet.pdf
    [37] Barnett Richard, O’Cull Larry, Cox Sarah, “Embedded C programming and the Atmel AVR”, 2003
    [38] David James, Russell, “Introduction to embedded systems: using ANSI C and the Arduino development environment”, 2010
    [39] Ratchet, http://socketo.me/
    [40] AJAX, http://www.w3schools.com/Ajax/ajax_intro.asp
    [41] GitLab, https://about.gitlab.com/downloads/
    [42] AltSoftSerial, https://www.pjrc.com/teensy/td_libs_AltSoftSerial.html
    [43] SOAP Protocol, https://tools.ietf.org/html/draft-box-http-soap-00

    下載圖示 校內:立即公開
    校外:立即公開
    QR CODE