ce07ncs002006000056

7
Web Services 在家庭自動化及遠距居家照護之應用 涂嘉壽 沈鈺翔 林文瑋 工業技術研究院電腦與通訊工業研究所 [email protected] [email protected] [email protected] 摘要 2002 年左右的一波在家中佈建網路的熱 潮之後,開發家庭與外界網路互動的相關服務自然 成為下一個值得深入研究的課題。 OSGi(Open Service Gateway Initiative)Service Platform 正好能 作為家庭中與外界網路的界接;本文即是從 Web Services 與家庭網路環境的結合為主題,規劃出一 個將家庭內網路結合外部網路所提供之 Home Telecare Home Automation 服務之架構。而外界 網路可以透過能夠串聯各種平台及程式語言並提 供服務的 Web Services ,使家庭內的自動化環境能 夠與家庭外的網路環境所提供的網路服務結合。 關鍵詞:網路服務、家庭網路、OSGi Abstract We’ve planed an infrastructure to connect the home network and external network, and provide home networking environment Home Telecare and Home Automation services that is provided by external network. The OSGi(Open Service Gateway Initiative) service platform can be the interface between Internet and Home Network. External network can connect all kinds of platforms and programming languages by using Web Services. Keywords: Web Serviceshome networkOSGi 1. 前言 在網路愈加發達的現代,越來越多的便利性 由於網路的普及而被開發出來。數位家電的興起使 得數位產業與家庭生活的結合更加的緊密,數位家 庭的願景也逐漸成形。接著在 2002 年左右的一波 在家中佈建網路的熱潮之後,為了更方便我們日常 生活,開發家庭與外界網路互動的相關服務自然成 為下一個值得深入研究的課題。 本文主要以 Web Service 作為外界網路提供 服務的窗口,讓家中的所有裝置能夠藉由 OSGi Service Platform 存取外部網路所提供的服務。舉例 來說,家用閘道器能透過開放式服務平台(OSGi Service Platform) 存取氣象局所提供的 Web Services 服務,並依據所萃取的資訊隨時調整家庭 內部相關裝置的狀態(例如:通知窗簾向下調整或 建議用戶應該搭配什麼衣服)因此,在本文中我們提出了結合 Home Automation Home Telecare 之家庭網路架構。在 Home Automation 方面,我們所採用的數位家電裝 置則是以 LonWorks UPnP 兩種技術為主,並且 利用我們所自行設計的 OSGi Service Platform 來整 合這兩種異質性網路。至於 Home Telecare 方面, 本架構在於為了解決需長期照護的患者、行動不便 的患者在醫院與居家之間來回奔走所造成的困擾 以及改善醫院病床不足等問題。另一方面,我們也 個人家庭醫療照護模擬情境來驗證本文 Home Telecare 建構之可行性。 1. 相關技術介紹 1.1 Web Services Web Services [4] [5] [6] 是服務導向架構的關 鍵技術之一,可透過網際網路使用企業內原有的商 業邏輯程式.微軟、IBM 這幾家大廠投入研發開發 工具、應用程式和平台,使用該技術的應用案例也 越來越多。Web Services所使用到的技術如下: HTTP:網際網路上最為通用的通訊協定, 用以與 Web Server 溝通,取得 Web Server 所提供的內容。 簡易物件存取協定(SOAP):以 XML 為基礎的 通訊協定。SOAP 通訊協定多架構於 HTTP .SOAP 的功能為遠端呼叫和要求 Web 服務。 這項協定會描述訊息內容、使用者處理的方式、由 誰處理、以及這個訊息的優先順序(一定要處理或 不處理也沒關係)。 SOAP 便會按照內容決定某些 服務可由誰使用以及如何使用。 1

Upload: jbcinvest

Post on 10-Jun-2015

142 views

Category:

Technology


2 download

TRANSCRIPT

  • 1. Web Services [email protected][email protected]@itri.org.tw Web Service OSGi Service Platform (OSGi 2002 Service Platform) Web Services OSGi(Open(Service Gateway Initiative)Service Platform ) WebServices Home Home Automation Home Telecare Telecare Home Automation Home Automation LonWorks UPnP Web Services OSGi Service Platform Home Telecare OSGi HomeAbstract Telecare Weve planed an infrastructure to connect the homenetwork and external network, and provide home1. networking environment Home Telecare and HomeAutomation services that is provided by externalnetwork. The OSGi(Open Service Gateway Initiative) 1.1 Web Servicesservice platform can be the interface between Internetand Home Network. External network can connect all Web Services [4] [5] [6] kinds of platforms and programming languages by ,using Web Services. .IBM ,Keywords: Web Serviceshome networkOSGi Web Services: 1. HTTP, Web Server , Web Server SOAP XML SOAP HTTP 2002 .SOAP Web SOAP 1

2. Web WSDL XML mBedded Server) Web WSDL 1.3 Universal Plug and PlayUPnP(Universal Plug and Play) UPnP Forum1999 [11] 1.2 OSGi Gateway OSGi(Open Service Gateway Initiative ) (discovery)1999 3 [10] (control) OSGi Gateway UPnP(CD)[2] [12] (CP)(Addressing) (Discovery) (Description) 1OSGi (Control)(Eventing)(Presentation) 2OSGiGateway[5] [7] [9] 2 UPnP (Addressing) UPnP (CD CP) IP Ethernet UPnP (Discovery) CP SSDP(Simple Service Discovery 1 OSGi Protocol) UPnP OSGi [1] (Description)CP FrameworkBundleServiceFramework Java VM(Java Virtual Machine)Bundle UPnP Framework ServiceBundle (Control) CP SOAP(Simple(Export)(Import) Object Access ProtocolBundleOSGi Framework ) CD OSGiBundle(Service)(Eventing) CD CP CD IBMProsystGatespaceAtinav GENA(General Event Notification OSGi (IBM Architecture) httpService Management Framework Gatespace CD CPUbiserv ProSyst mBedded Server Atinav(Presentation)CD aveLink) (IBM Websphere HTML CP CD Prosyst mBedded Builder)OSGiCisco iHG(Gatespace Ubiserv) TulSG 2100 (IBM SMF)Philips iPronto(ProSyst 1.4 LonWorks2 3. LonWorksEchelon 90 [8] LonWorksNeuron ChipLonWorks(LonWorks Network Services)LonWorksLonTalk(ISO)OSI(Open Systems Interconnection)NeuronChip LonWorksLonWorksLonWorks ISO/OSI Gateway 3 (RF) 2.1 Home Automation LonWorks Internet Home Automation LonWorks()UPnP( Control Point) UPnP LonWorks UPnP LonWorks OSGi Gateway (interoperability) OSGi Service Platform ( UPnP Control Point discovery LonWorks 2. ) Web Services OSGi Service 3 Platform Web Services Home AutomationHome Telecare ( ) Home Automation cell phoneHome Portal UPnP Control Point 3 4. 2.2 Home Telecare Home Telecare Web / 4Home Telecare Web Services OSGi-CompliantOSGi-Compliant OSGi Service Platform Web Services2.3 OSGi Service Platform OSGi Service Platform HomeAutomation Home Telecare 4 Home Telecare OSGi-Compliant OSGi Service Platform (Driver DirectoryService)(Driver 5 OSGi Service Platform StackService Bundle) 5OSGi Service PlatformOSGi Service Platform OSGi Framework VisualMachine Operating System Communication Web InterfaceOSGi Framework Web Services (Custom Bundles)OSGi Service PlatformHome AutomationHomeOSGi-Compliant Telecare/( OSGiService Platform IP )3. Service Provisioning ( Web Web Services ) Web ServicesOSGi Service OSGi Service PlatformplatformHome AutomationHome Telecare 4 5. 3.1 3.2.1LonProxy OSGi Service Platform LonProxy OSGi Service Platform iLon100 ( SBC VIA EPIA-MII 800MHz , 128RAM, SOAP/XML )1G HDOSLinux 2.4.25 (Linux Kernel)VMJVM1.4.2_05OSGi FrameworkProsyst mbs5.2 Home AutomationLonWorksiLon100 LonWorks()UPnPTV Home Telecare 7 LonProxy 7LonProxy 1. iLon100 LonWorks JBuilder2005 LonMarker for(: -Neuron ID )WindowsVisual Studio.NET 2003 2. Lon2UPnP3.2 Home Automation Driver OSGi ServicePlatform 6Home Automation 3. OSGi Service Platform LonDevice Driver OSGiLonWorksUPnPLonProxy iLon100 iLon100 RegisterDriver LocationDriver Device ManufactureDirectoryService 3.2.2Lon2UPnP Driver (soap) Prepare Ask DriverLocationGet DriverLocationMobile Lon2UPnP Driver Driver ForOSGi SPcontrolLonWorks Exporter UPnP Download UPnPcontrolweb UPnP Control Point OSGi Get Driver Show UIHome Lamp Driver PortalService Platform LonWorks control control DriverUPnPDownload C.P. DownloadLocationfrom DriveriLon100 8OSGiLocationLon Lamp Service Platform UPnP Base Driver UPnP 6 Home Automation Device Service ObjectOSGi Registry UPnP Control Point Device Home Automation Service ObjectUPnPOSGi Service Platform (LonProxyLonDevice Service DriverAxis_LibUPnP Base Driver Custom Bundles)Home Automation 5 6. OSGi Provisioning Service Remote Manager web 3.3.1CommPort_Driver 8 Lon2UPnP LonWorks Exporter UPnP PC PC OSGi-Compliant Bluetooth PC Web Services OSGi 3.2.3 UPnP Base Driver Framework CommPort_Driver UPnP Base Driver Domoware[3] UPnP Base Driver OSGi3.0 OSGi Service PlatformOSCAR serial port UPnP Control Point discovery OSGi RegistryUPnP Device Service Object 3.4 Web Services3.3 Home Telecare Web Services Dynamic Driver Install Driver Directory Service Directory WebRegister Services DriverLocationDriverDevice DirectoryManufactureService(soap) 3.4.1 Dynamic Driver Install Hospital PrepareAsk Driver Location Get Driver LocationDriver Directory Service Driver For OSGi SP RemoteDownloadInstall&Mngt.Get DriverDriver useMedical App Report data(soap) Drive Driver Download Download Bluetooth Connection Web Services OSGi Locationfrom Driver Location OSGi Glucose Measurement Device ID OSGi 9 House Telecare OSGi web service osgi driver bundle 3.4.2 Directory Web Services Microsoft VB.NET Web Service OSGi UpdateBundleURLwithNeuronID 6 7. UPnP LonWorks isExist ( HomePlugUWBZigbee ) SetBundleURLwithNeuronID Home Telecare GetBundleURLformNeuronID ID Bundle URL ,, .5. [1] Condry, M.; Gall, U.; Delisle, P., Open Service Gateway architecture overview, IEEE Industrial Electronics Society, pp. 735-742, 1999. [2] Dobrev, P.; Famolari, D.; Kurzke, C.; Miller, B.A., Device and service discovery in home networks with OSGi, IEEE Communications Magazine, pp. 86-92, August 2002. [3] DomoWare, http://domoware.isti.cnr.it/ [4] F Curbera, M Duftler, R Khalaf, W Nagy, N Mukhi, S Unraveling the Web Services Web IEEEInternet Computing,2002- 10 Directory Web Service WSDL ieeexplore.ieee.org [5] F Curbera, R Khalaf, N Mukhi, S Tai, S Weerawarana The next step in Web services Communications of the ACM, 2003 - portal.acm.org [6] H Kreger WebServices Conceptual Architecture IBMTechnical Report WCSA, 2001 [7] Hofrichter, K., The residential gateway as service platform, IEEE Consumer Electronics, pp. 304-305, 2001. [8] LonWorks, http://www.echelon.com [9] Marples, D.; Kriens, P., The Open Services Gateway Initiative: An Introductory Overview, 11 UI for Input DataIEEE Communications Magazine, pp. 110-114, Dec 2001. [10] OSGi Alliance, http://www.osgi.org/4. [11] UPnP, http://www.upnp.org [12] Xie Li; Wenjun Zhang, The design andimplementation of home network system using OSGi compliant middleware, IEEE Consumer Electronics, pp. 528-534, May 2004.Web Service OSGi Gateway LonWorks UPnP 7