Smart Office Bluetooth Sensor Network Instant Messaging n
Smart Office: Bluetooth Sensor Network + Instant Messaging n Y. -C. Tseng, T. -Y. Lin, Y. -K. Liu, and, B. -R. Lin, "Event-Driven Messaging Services over Integrated Cellular and Wireless Sensor Networks: Prototyping Experiences of a Visitor System", IEEE J. on Selected Areas in Communications, 2005. tseng: 1
Motivation: Instant Messaging Service n Instant Messaging and Presence Services n n Short Message Service (SMS) in GSM MSN Messenger / ICQ 2
Goals of our Event-Driven Messaging Services n n n Cross-network applications and services. Event driven messaging service Modular approach by dividing the system into several subsystems according to their functionalities. 3
Scenario: Smart Office n Bluetooth-based Sensor Network n Mike經理接獲即時訊息 “會議己ready” n 會議中… 助理要找Mike經理, 並設定即 時訊息 n 會議後… 助理收到即時訊息 “Mike經理 己經回到office” n (view demo: visitor-system-flash. exe) 4
System Architecture Overview 5
System Architecture (1/2) n Location Server n n Action Server n n Maintain the user-location mapping in a database. Carry out action with reliability Event Server n Trigger an action 6
System Architecture (2/2) n SMPP Client and WAP Web Server n Plays the role as a bridge between telephone network and Internet. n Bluetooth Sensor n Detects the user location n Connects with mobile terminals through Bluetooth Client n Bluetooth-enabled laptop/palmtop or a Bluetoothenabled WAP handset. n 7
Configuration Example 1 n Mike configures an event: n n (Alice Enter Sensor X) AND (Bob Enter Sensor X) Do Unicast (Mike) When the event becomes true, the system will send Mike a message. 8
Message Flows (through NB) (Message for Mike, index) Alice > X & Bob > X index Send of to. Action Mike 3 4 7 2 6 Alice > X Bob > X 1 5 9
When the Event Happening (Message for Mike, index) Alice > X & Bob > X index of Action 4 5 6 3 7 9 2 Bob > X 1 8 Alice and Bob have arrived! 10
Configuration Example 2 n Cathy Submits a request “On ( Manager LEAVE Sensor X + 3 )” Do Unicast Cathy “ through WAP. n When the event becomes true, the system will send Cathy a message 11
Message Flows (through WAP) (Message for Cathy, index) (Mike < X)+3 Index Send to of Cathy Action 3 2 5 4 6 1 Mike < X 12
When the Event Happening The device of Cathy is a handset (Message for Cathy, index) (Mike < X)+3 Index of Action 6 7 8 3 ACK 4 5 2 9 Mike < X 1 3 min later!! Mike is available 13
Definition: Events and Actions (1/2) n Events are expressed as the following format On < Evnt. Val > Do < Action > n Action n n Unicast, Geocast, Multicast, or Broadcast Text or file 14
Events and Actions (2/2) n Evnt. Val n Time Event n n n @04/16/04 9: 00 (Bob > Office) + 5 04/16/04 9: 00 ~ 04/16/04 11: 00 04/16/04 9: 00 ^ 10 Location Event n n Absolute time : Relative time : Time interval : Periodical time: “Enter”, “Leave” and “At” Compound Event n AND, OR, NOT, (), 15
EBNF Grammar of Event Expression n n n < Evnt. Val > = < Sub. Evnt. Val > * < Evnt. Val > | < Sub. Evnt. Val > + < Evnt. Val > | < Sub. Evnt. Val > = < Sngl. Evnt. Val > | (< Evnt. Val >) | ! < Sub. Evnt. Val > < Sngl. Evnt. Val > = < Loc. Evnt > | < Time. Evnt > < Loc. Evnt > = < ID > < Rel > < Sensor X > < Rel > = > | < | @ < Time. Evnt > = < min/hr/dat/mon/yr > | < Time. Of. Evnt(Loc. Evnt) + min> | <min/hr/dat/mon/yr~min/hr/dat/mon/yr > | < min/hr/dat/mon/yr ^ period > 16
Sensing and Detecting Capability n n n A sensing field A with a N sensors. Sensors are not synchronized in time. The average Latency L : the user can be detected by any sensor after it appears. Ai be the area of A that is covered by exactly i sensors. (1 ≤ i ≤ n) Li be the latency such that a user is detected by any sensor after it appears in Ai. Therefore, 17
Sensing and Detecting Example 18
Calculation of Li 19
Summary of Contributions n n We have prototyped an event-driven instant messaging application over integrated telecomm and datacomm networks. Sensing/detecting capability analysis 20
- Slides: 20