钟圣伦教授嵌入式系统实验室.ppt

钟圣伦教授嵌入式系统实验室

* 整個MyServer設計的概觀如此圖所示 * 如前述, MyHome可以粗略的分成兩大塊, 提供後端資訊處理及傳遞的MyServer及遠端的檢視界面, MyIcon與MyMobile, 而server與GUI間則以internet的方式連結, 而server內各個module分別負責與遠端GUI和實體層的device溝通 * 當GUI module由location topic 接收到人員位置資訊後 會透過context-aware rule base判斷此位置及ID所對應的context-aware服務 若判斷後滿足服務條件, 便執行對應的callback function 舉例來說, 若滿足的條件為upnp裝置的開啟 此訊息便會透過mom傳遞給upnp control module去觸發實體裝置狀態的轉換 另一方面此訊息也會被更新至遠端的UI介面 * 此流程圖說明遠端UI上的裝置狀態如何與實體裝置的狀態同步 當使用者在遠端UI上進行裝置操控時 遠端UI會將裝置操作的指令經由java applet透過socket將指令傳遞給GUI module GUI module接收後便將此筆資料publish至upnp command topic 藉由event-driven機制觸發upnp control module執行對應的實體裝置狀態轉換 * * C. Service invocation of a contextual rule Run time events * Any event change? Yes No Service invocation Rules reasoning Updating condition variables Any matching? Yes No Event-update notification to rule-based engine * COTS {Who, Where}: Father_in_living_room = false Father_in_kitchen = false Mother_in_kitchen = false Mother_in_bed_room = false {When}: Time1~Time2 Time1~Time2 Time1~Time2 Other sensor Module Rule-based Engine Module Who is in where Sensor on/off Father_in_living_room = true Reed switch= true Condition variables … … … Call back function for COST {Setting variables} Call back function for Others {Setting variables} {Other sensor} Glass break = false Reed switch = false Fire detector = false D. Integration of context-aware system * Position module Image processing module OSGi Service Registry ActiveMQ Message Oriented Middleware Location bc.addServiceListener(this, (objectClass= + LocationService.class.getName() +)); Main Function Main Function IP Camera Video Streaming Location Service Location serviceReg= context.registerService (Position.class.getName(), new PositionImp()); The System Architecture of the Rule module * COTS Providing who, when, where info Peripheral Module Providing other information GPS Module Providing where information Mobile Phone Binary Light Storage service GPS Module UPnP Control Module Subscribe all contextual information ActiveMQ Secu

文档评论(0)

1亿VIP精品文档

相关文档