§ 瀏覽學位論文書目資料
  
系統識別號 U0002-1509201418243800
DOI 10.6846/TKU.2014.00527
論文名稱(中文) 應用NFC於煙酒結帳系統之設計與實作
論文名稱(英文) Design and Implementation of an NFC-based Tobacco and Wine Checkout System
第三語言論文名稱
校院名稱 淡江大學
系所名稱(中文) 資訊工程學系碩士在職專班
系所名稱(英文) Department of Computer Science and Information Engineering
外國學位學校名稱
外國學位學院名稱
外國學位研究所名稱
學年度 102
學期 2
出版年 103
研究生(中文) 董翊帆
研究生(英文) Yi-Fan Doong
學號 701410051
學位類別 碩士
語言別 繁體中文
第二語言別 英文
口試日期 2014-07-18
論文頁數 52頁
口試委員 指導教授 - 張志勇
委員 - 蘇民揚
委員 - 張兆村
委員 - 張志勇
關鍵字(中) 結帳系統
嵌入式系統
Android
Arduino
NFC
關鍵字(英) Checkout System
Embedded System
Android
Arduino
NFC
第三語言關鍵字
學科別分類
中文摘要
近年隨著行動裝置的普及智慧型手機的興起,近場無線通訊(Near Field Communication, 以下皆簡稱NFC)技術也以行動通訊裝置為發展重心。NFC能夠對民眾生活產生許多便利的應用,透過輕巧且快速的讀取功能,打造極為方便的購物環境。NFC的技術,除了可應用於生活便利的情境外,亦能增加防偽特性,例如,在名貴煙酒商品上除了防偽標籤外,另外置入了NFC Tag,除了能擁有獨立身分證ID,並提供消費者能更便利、快速的結帳外,以及提供煙酒廠商更方便追蹤販售地,以達到防偽、防盜之功效。本論文所研發的結帳系統藉由NFC行動裝置應用,以利消費者購買煙酒商品前,可得到更詳細的生產履歷及購物記錄。透過NFC與嵌入式系統結合,當消費者購買煙酒商品結帳時,系統連接廠商資料庫,進而更改購物記錄。這樣消費者可以隨時以NFC行動裝置上網查詢到煙酒商品之購買狀態。
英文摘要
With the rise of mobile devices, such as smart phones, in recent years, mobile devices has be-come the focal point of the development of the near-field communication (NFC) technology. With the characteristics of lightweight and fast read functions of NFC, a lot of handy applications can then be created to promote convenient shopping environment. NFC technology also can provide anti-counterfeit features. For example, NFC tags can be attached to expensive tobacco and alcohol goods to provide unique ID for consumers’ fast checkout and anti-theft protection.
The checkout system developed, as described in this paper, allows consumers to obtain produc-tion history and shopping record of the alcohol and tobacco products before buying. By incorporat-ing NFC into an embedded system, the system can update the shopping record through the connec-tion with the vendor database before checkout. As the result, consumers can always obtain the shopping record with this NFC mobile device.
第三語言摘要
論文目次
目錄
圖目錄 V
表目錄 VII
第一章、簡介 1
1.1 研究動機 1
1.2 研究目的 1
第二章、相關研究 3
第三章、相關技術 5
3.1 NFC技術簡介 5
3.2 Arduino簡介	8
3.3 Android簡介 16
3.4 伺服器與資料庫 24
第四章、NFC煙酒結帳系統硬體設計與實作 28
4.1 NFC煙酒結帳系統硬體架構 28
4.2 NFC煙酒結帳系統設計–WiFi Module 29
4.3 NFC煙酒結帳系統設計–NFC Module 30
4.4 NFC煙酒結帳系統設計–LCD Module 31
4.5 伺服器與資料庫系統設計 32
第五章、NFC煙酒結帳系統軟體開發與實作 33
5.1 NFC煙酒結帳系統軟體架構 33
5.2 Arduino軟體開發 34
5.3 Android Client軟體開發 35
5.4 伺服器與資料庫 38
5.5 系統整合 40
5.6 系統效能 42
第六章、結論 44
參考文獻 45
附錄-英文論文 48

圖目錄
圖1、NFC傳輸模式 7
圖2、Arduino開發板架構圖 9
圖3、Arduino Ethernet Shield 11
圖4、W5100架構圖 11
圖5、NFC近場通訊模組 12
圖6、Arduino LCD模組 13
圖7、Arduino IDE介面 14
圖8、Arduino開發基本介面 15
圖9、Android系統架構 17
圖10、Android開發環境架構 18
圖11、Android Activity狀態流程圖 20
圖12、Android程式重新啟動狀態恢復流程圖 21
圖13、Apache監看指令 26
圖14、Apache 網頁測試畫面 27
圖15、php Info詳細資訊 27
圖16、系統硬體線路圖 28
圖17、WiFi Module硬體線路圖 29
圖18、NFC Module硬體線路圖 30
圖19、LCD Module硬體線路圖 31
圖20、伺服器系統設計架構圖 32
圖21、系統軟體結構圖 33
圖22、Tag ID檢查程式碼 34
圖23、Android Client警告訊息 36
圖24、Android Client Scan NFC Tag 36
圖25、Android Client錯誤畫面 37
圖26、Android Client讀取畫面 37
圖27、資料庫建立指令 38
圖28、資料庫讀取片段程式碼 39
圖29、監聽程式自動啟動設定 39
圖30、資料庫初始商品設定 40
圖31、NFC煙酒結帳系統硬體實體圖	41
圖32、NFC煙酒結帳系統情境圖 41
圖33、NFC Read Time 42
圖34、Server Process Time 43

表目錄
表1、NFC Tag規格表 8
表2、Arduino IDE介面功能表格說明 15
表3、Android API支援NFC類型格式	23
參考文獻
[1]數位時代,“【前瞻2015-行動付款】行動付款技術解析:NFC篇”,
http://www.bnext.com.tw/article/view/id/20316
[2]科技新報,“永不點錯單?東芝新型POS系統整合NFC創造次世代接客系統”, 
http://technews.tw/2013/09/21/toshiba-pos-nfc-orderstar-willpos/
[3]台灣電子期刊服務網,“應用NFC基於行動APP的設計”,
http://www.airiti.com/teps/ec/ecjnlarticleView.aspx?jnlcattype=1&jnlptype=2&jnltype=13&jnliid=13317&issueiid=150482&atliid=2709484
[4]NFC Forum,“NFC in Action”,
http://nfc-forum.org/what-is-nfc/nfc-in-action/
[5]Wikipedia,“Near field communication”,
http://en.wikipedia.org/wiki/Near_field_communication
[6]王文宏,“淺談近距離無線通訊技術”, 網路通訊雜誌, 第168期, 頁92-97, July 2005.
[7]NFC Forum,“NFC Forum Specification Architecture”,
http://nfc-forum.org/our-work/specifications-and-application-documents/specifications/
[8]International Organization for Standardization/International Electro technical Commission - ISO/IEC, FCD, 14443-2, 1999.
[9]International Organization for Standardization/International Electro technical Commission- ISO/IEC, Identification Cards – Test Methods, WD, 10373-6, 2006.
[10]Standard ECMA 352, 1st Edition, Near Field Communication Interface and Protocol-2 (NFCIP-2), Dec. 2003.
[11]NXP,“NFC Forum Type Tags White Paper V1.0”,
http://67.222.41.204/wp-content/uploads/2013/12/NFC-Forum-Type-Tags.pdf
[12]Arduino,“ArduinoUno”,
http://arduino.cc/en/Main/ArduinoBoardUno
[13]Arduino,“ArduinoEthernetShield”,
http://arduino.cc/en/Main/ArduinoEthernetShield
[14]ELEC Freaks,“ArduinoEthernetShield”,
http://www.elecfreaks.com/store/nfcrfid-breakout-module-p-519.html
[15]維基百科,“I²C”, 
http://zh.wikipedia.org/wiki/I%C2%B2C
[16]維基百科,“Serial Peripheral Interface Bus”,
http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus
[17]Arduino,“Download the Arduino Software”,
http://arduino.cc/en/Main/Software
[18]Tim Bray,“What Android Is”,
http://www.tbray.org/ongoing/When/201x/2010/11/14/What-Android-Is
[19]蓋索林,“Google! Android3 手機應用程式設計入門第四版”,松崗資訊股份有限公司, 2011.
[20]androidbmi,“InstallAndroid ”,
https://code.google.com/p/androidbmi/wiki/InstallAndroid
[21]Android Developer,“Develop Tools”,
http://developer.android.com/tools/index.html
[22]IntellijIDEA,“Prerequisites for Android Development”,
http://confluence.jetbrains.com/display/IntelliJIDEA/Prerequisites+for+Android+Development
[23]Android Developer,“Develop Reference”,
http://developer.android.com/reference/android/nfc/tech/package-summary.html
[24]鳥哥的Linux私房菜,“第二十章、WWW 伺服器”,
http://linux.vbird.org/linux_server/0360apache.ph
論文全文使用權限
校內
紙本論文於授權書繳交後5年公開
同意電子論文全文授權校園內公開
校內電子論文於授權書繳交後5年公開
校外
同意授權
校外電子論文於授權書繳交後5年公開

如有問題,歡迎洽詢!
圖書館數位資訊組 (02)2621-5656 轉 2487 或 來信