簡易檢索 / 詳目顯示

研究生: 郭上懷
Kuo, Shang-Huai
論文名稱: 以OSGi建置之電子書平台
An E-book Platform based on OSGi
指導教授: 侯廷偉
Hou, Ting-Wei
學位類別: 碩士
Master
系所名稱: 工學院 - 工程科學系
Department of Engineering Science
論文出版年: 2010
畢業學年度: 98
語文別: 中文
論文頁數: 76
中文關鍵詞: OSGi電子書平台TR-069
外文關鍵詞: OSGi, e-book, platform, TR-069
相關次數: 點閱:72下載:1
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  • 隨著電子閱讀器(裝置)的逐漸普及,越來越多電子書平台以及電子書軟體被開發出來。然而,多數的電子書閱讀器仍屬廠商客製化的系統,造成了封閉之軟體分享市場,以及應用程式難以達到跨平台等缺點。本研究基於Open Services Gateway Initiative (OSGi)技術,建置一電子書取向的平台,並嘗試解決上述問題。
    本電子書平台特色在於使用OSGi技術來建置一個整合目前電子書需求取向的開放平台,也設計出了一個適合運行在嵌入式系統上及發展的平台架構。在平台與外界的遠端溝通上,設計了一套電子書平台與遠端應用程式提供商的溝通協定,讓平台能夠藉由網際網路進行應用程式合法、安全的下載與分享,書籍/應用程式再作分享或轉賣的方式給另一平台使用。甚至能藉由TR-069通訊協定完成平台的更新及遠端狀態的監控。此外,平台上也支援一套安裝的認證機制,使得在分享應用程式時,只要能取得原本平台的認證,應用程式便可運行在另一個Java平台上,充分發揮了跨平台的特性。
    此研究建構並實作出一個易於新增/更新/移除系統服務與應用程式的電子書平台。此平台的架構包含三層,核心層(Core)扮演著整個平台的管理者角色,負責平台上應用程式的溝通、分配系統資源給應用程式以及監看所有應用程式的執行狀態。系統服務層(System Service)則提供了平台上電子書基本運作的函式庫,同時也定義了平台上傳送的封包型態。另外,還有使用者介面的自動分配,可以縮短程式開發的時間與開發過程中的可調整性。
    而在實作之電子書平台上,也已成功將許多Java應用程式改寫為OSGi的服務包(bundle)形式在平台上運行,如:文字編輯器、相簿管理程式、日曆、字典、多媒體播放器、虛擬鍵盤等。此結果顯示了此平台之穩定性與可用性。

    With the fast development of the e-book market, more and more e-book readers, platforms and software have emerged. However, most of them are proprietary, which thus leads to difficulties in the software sharing and the portability of the software components. This thesis attempts to resolve these problems by presenting a novel e-book platform based on the Open Services Gateway Initiative (OSGi) technique.

    One characteristic this work is a remote communication protocol (mechanism) between the platform and the application provider on the Internet. It not only enables a secure and legal way to download applications from different application providers, but also provides a means to share/resell the applications/e-books between platforms. Moreover, the TR-069 protocol is integrated into our platform, which is useful for updating and monitoring the platform remotely. This platform also supports an install-validating policy, which enables applications to execute on another java-based platform as long as the target platform acquires the original platform’s permission.

    By exploiting the OSGi framework that provides a complete registry procedure and well-defined developed APIs, the proposed platform can thus be a stable and reliable java-based platform, and the applications on this platform are easy to install, update and uninstall. The platform contains three layers in design. First, a Core layer is designed as a system manager that is responsible for handling the communication between applications, distributing system resources and monitoring all runtime status of the applications. Second, a System Service layer provides the required libraries for all the basic actions of the E-book requirements. We also define the packet type through the platform and an auto-assignment mechanism for GUI interfaces, which reduces the developing time and increases the flexibility when designing and modifying the platform.

    In addition, a prototype of the proposed platform is designed and implemented. Since the platform is based on OSGi, several Java applications, such as text editor, photo management, calendar, dictionary, virtual keypad and media player, are rewritten as OSGi bundles for demonstration. The results show the feasibility and the reliability of the proposed platform.

    目錄 中文摘要 IV ABSTRACT V 誌謝 VI 目錄 VII 圖目錄 X 表目錄 XII CHAPTER 1 – 緒論 1 1.1電子書現況 1 1.2研究動機 2 1.3章節概要 3 CHAPTER 2 –相關背景知識與目前相關研究 4 2.1 OSGi 平台 4 2.1.1 OSGi 簡介 4 2.2遠端管理相關通信協定簡介 8 2.2.1 TR-069(CWMP, CPE WAN Management Protocol)[21] 8 2.3相關研究 12 2.3.1 電子書平台 12 2.3.2 平台管理相關 13 2.3.3 遠端分享服務相關 13 CHAPTER 3 – 系統元件分析 14 3.1 CORE 14 3.1.1 Process Control Unit 15 3.1.2 Communication Unit 15 3.1.3 Event Handle Unit 16 3.1.4 Service Discover Unit 16 3.1.5 Security Unit 17 3.2 封包(PACKET)介紹 17 3.3 系統服務 ( SYSTEM SERVICE ) 19 3.4 平台遠端通訊 22 3.4.1平台目前的狀態與監測 23 3.4.2應用程式購買與下載 23 3.4.3應用程式分享 24 3.4.4應用程式更新 24 CHAPTER 4 – 架構設計與實作 25 4.1 平台架構設計理念 25 4.2 部屬架構流程 27 4.2.1 執行緒 (Thread) 27 4.2.2 MenuTree 30 4.2.3 平台運作流程圖 33 4.3 平台遠端通訊設計 36 4.3.1 CLIENT MODULE 37 4.3.2 PARSER ENGINE 38 4.3.3 APPURCHASE MODULE 39 4.3.3 APPDOWNLOAD MODULE 40 4.3.4 APPSHARE MODULE 40 4.3.5 TR-069 METADATA MODULE 41 4.4 平台與ACS ( 應用程式提供商 )互動架構 41 4.4.1 從遠端應用程式提供商購買應用程式 42 4.4.2 平台之間分享 / RESELL應用程式 45 CHAPTER 5 – 系統實作結果 47 5.1 開發環境介紹 47 5.2 平台基本功能實作 48 5.2.1 應用程式啟動 / 結束流程 ( 以文字編輯器 (EDITOR) 為例 ) 48 5.2.2 應用程式要求系統服務流程 ( 圖片管理程式 (PHOTO MGT) 為例 ) 49 5.2.3 應用程式之間的溝通流程 ( 以文字編輯器向字典查詢單字為例 ) 50 5.3 平台端服務功能實作 50 5.3.1 向ACS / 應用程式提供商購買應用程式 51 5.3.2 從ACS / 應用程式提供商下載應用程式 53 5.3.3 平台之間分享應用程式 54 5.4 此平台與其他電子書產品比較表 55 CHAPTER 6 – 結論和未來工作 57 REFERENCE 59 附錄 62 附錄一 執行緒資料結構與提供函式庫集 62 附錄二 平台相關USE CASE描述 65 附錄三 向ACS / 應用程式提供商購買應用程式實作畫面 68 附錄四 從ACS / 應用程式提供商下載應用程式實作畫面 70 附錄五 平台之間分享應用程式實作畫面 73 附錄六 平台上其他應用程式 75

    英文論文參考
    [1] M. Abdeen, R. Medhat, M. Fayez, A. Hamad,and M. C.E. Yagoub , “An Extensible Software Framework for Portable Devices – An E-book Reader Case Study”, Proc. of 2008 7th IEEE Conference on Polymers and Adhesives in Microelectronics and Photonics, Garmish-Partenkirchen , pp. 1-5,2008
    [2] Ping-Yu Chen, “A Novel Network Module for Medical Devices”, Proc. of the 30th Annual International IEEE EMBS Conference, Vancouver, British Columbia, Canada, pp. 1553-1556, August 20-25, 2008.
    [3] Mario Ibáñez, Natividad Martínez Madrid, Ralf Seepold, Willem van Willigenburg, and Harold Balemans, “An OSGI-Based Model for Remote Management of Residential Gateways”, Springer-Verlag, Berlin Heidelberg, pp. 535–538, 2007.
    [4] Kyu-Chang Kang, and Jeon-Woo Lee, “Implementation of Management Agents for an OSGi-based Residential Gateway”, Proc. of the 6th International Conference on advanced Communication Technology , vol. 2, pp. 1103 – 1107, 2004.
    [5] Eunhoe Kim , Kihyun Yun and Jaeyoung Choi , “RSP : A Remote OSGiService Sharing Schema” , Proc. of the IEEE Conference on Autonomic and Trusted Computing , pp.318-323 , 2009
    [6] Bracke Sylvie, Adriana Louisa, Maria Bouchat, Christele Acke, and Willem Jozef Amaat, TR69 Based Service Interface for OSGi Bundle, United States, Patent Application Publication, Pub. No. : US 2007/0220093/A1, Pub. Date: Sep. 20, 2007.
    [7] Pang-Chieh Wang, Cheng-Liang Lin, and Ting-Wei Hou, “Resource-Aware Service Deployment for Open Service Gateway in Home Network,” Proc. of IEEE Region 10 Conference (TENCON 2007), Taipei, Taiwan, pp. 1-4, 2007.
    [8] C. L. Wu , C.F. Liao ,and L.C. Fu , “Service-Oriented Smart-Home Architecture Based on OSGi and Mobile-Agent Technology”, IEEE Transactions on Systems , Man , and Cybernetic , pp.193-205 , March 2007.
    [9] Jiankun Wu, Linpeng Huang, Dejun Wang, and Fei Shen , “R-OSGi-based Architecture of Distributed Smart Home System” , IEEE Transactions on Consumer Electronics , pp.1166-1172 , October 2008.
    中文論文參考
    [10] 王純茗, OSGi閘道器與服務經營者間含資源限制考量之服務部署與恢復策略, 國立成功大學工程科學所碩士論文, 2008.
    [11] 吳金能, OSGi 之遠端管理模型, 工研院南分院家網中心, 2007南台灣資訊科技與應用研討會, pp. 303-307, 2007.
    [12] 陳昭銘,基於TR-069通訊協定之OSGi平台的遠端管理 , 國立成功大學工程科學所碩士論文,2009

    網頁參考
    [13] 資策會FIND網站,http://www.find.org.tw/find/home.aspx
    [14] Amazon Kindle, http://www.amazon.com/Kindle-Wireless-Reading-Display-Globally/dp/B0015T963C
    [15] Apple iPad,
    http://www.apple.com/ipad/
    [16] Sony Portable Reader,
    http://www.sonystyle.com/webapp/wcs/stores/servlet/CategoryDisplay?catalogId=10551&storeId=10151&langId=-1&categoryId=8198552921644523779&N=4294954529&Name=All+Reader+Digital+Books
    [17] OSGi Alliance , OSGi Service Gateway Release 1 , May2000 , http://www.osgi.org/Download/Release
    [18] OSGi Alliance, OSGi Service Platform Release 2 ,October 2001,
    http://www.osgi.org/Download/Release2.
    [19] OSGi Alliance, OSGi Service Platform Specification Release 3 ,March 2003,
    http://www.osgi.org/Download/Release3
    [20] OSGi Alliance, OSGi Service Platform Core Specification Release 4 ,Version
    4.0.1, July 2006, http://www.osgi.org/Release4/Download
    [21] SUN Microsystems, The Java Language Specification, 3rd Edition. Available from: http://java.sun.com/docs/books/jls/third_edition/html/j3TOC.html.
    [22] Broadband Forum, TR-069: CPE WAN Management Protocol v1.1, Issue 1 Amendment 2, (Nov 2007), http://www.broadband-forum.org/technical/download/TR-069Amendment2.pdf.
    [23] Broadband Forum, TR-098:Internet Gateway Device Data Model for TR-069, Issue 1 Amendment 2,(Sep 2008), http://www.broadband-forum.org/technical/download/TR-98_Amendment_2.pdf
    [24] Broadband Forum, TR-106:Data Model Template for TR-069-Enabled Devices, Issue 1 Amendment 2,(Nov 2008), http://www.broadband-forum.org/technical/download/TR-106Amendment2.pdf
    [25] Google Android Platform
    http://code.google.com/intl/zh-TW/android/
    [26] JXTA – Project JXTA , http://www.jxta.org

    下載圖示 校內:2012-08-30公開
    校外:2012-08-30公開
    QR CODE