200 likes | 215 Views
Smart Office: Bluetooth Sensor Network + Instant Messaging.
E N D
Smart Office:Bluetooth Sensor Network + Instant Messaging 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.
Motivation: Instant Messaging Service • Instant Messaging and Presence Services • Short Message Service (SMS) in GSM • MSN Messenger / ICQ
Goals of our Event-Driven Messaging Services • Cross-network applications and services. • Event driven messaging service • Modular approach by dividing the system into several subsystems according to their functionalities.
Scenario: Smart Office • Bluetooth-based Sensor Network • Mike經理接獲即時訊息 “會議己ready” • 會議中… 助理要找Mike經理, 並設定即時訊息 • 會議後… 助理收到即時訊息 “Mike經理己經回到office” • (view demo: visitor-system-flash.exe)
System Architecture (1/2) • Location Server • Maintain the user-location mapping in a database. • Action Server • Carry out action with reliability • Event Server • Trigger an action
System Architecture (2/2) • SMPP Client and WAP Web Server • Plays the role as a bridge between telephone network and Internet. • Bluetooth Sensor • Detects the user location • Connects with mobile terminals through Bluetooth • Client • Bluetooth-enabled laptop/palmtop or a Bluetooth-enabled WAP handset.
Configuration Example 1 • Mike configures an event: • (Alice Enter Sensor X) AND (Bob Enter Sensor X) Do Unicast (Mike) • When the event becomes true, the system will send Mike a message.
3 4 7 2 6 1 5 Message Flows (through NB) (Message for Mike, index) Alice > X & Bob > X Send to Mike Alice > X & Bob > X index of Action Alice > X & Bob > X index of Action Alice > X Bob > X Bob > X
4 5 6 3 9 7 2 8 1 When the Event Happening (Message for Mike, index) Alice > X & Bob > X index of Action Alice > X & Bob > X index of Action Bob > X Alice and Bob have arrived!
Configuration Example 2 • Cathy Submits a request “On( Manager LEAVE Sensor X + 3 )” Do Unicast Cathy “through WAP. • When the event becomes true, the system will send Cathy a message
3 2 5 4 6 1 Message Flows (through WAP) (Message for Cathy, index) (Mike < X)+3 Send to Cathy (Mike < X)+3 Index of Action Mike < X
6 7 3 4 2 8 5 1 9 ACK When the Event Happening The device of Cathy is a handset (Message for Cathy, index) (Mike < X)+3 Index of Action (Mike < X)+3 Index of Action (Mike < X)+3 Index of Action 3 min later!! Mike < X Mike is available
Definition: Events and Actions (1/2) • Events are expressed as the following format On < EvntVal > Do < Action > • Action • Unicast, Geocast, Multicast, or Broadcast • Text or file
Events and Actions (2/2) • EvntVal • Time Event • Absolute time : @04/16/04 9:00 • Relative time : (Bob > Office) + 5 • Time interval : 04/16/04 9:00 ~ 04/16/04 11:00 • Periodical time: 04/16/04 9:00 ^ 10 • Location Event • “Enter”, “Leave” and “At” • Compound Event • AND, OR, NOT, (),
EBNF Grammar of Event Expression • < EvntVal > = < SubEvntVal > * < EvntVal > | < SubEvntVal > + < EvntVal > | < SubEvntVal > • < SubEvntVal > = < SnglEvntVal > | (< EvntVal >) | ! < SubEvntVal > • < SnglEvntVal > = < LocEvnt > | < TimeEvnt > • < LocEvnt > = < ID > < Rel > < Sensor X > • < Rel > = > | < | @ • < TimeEvnt > = < min/hr/dat/mon/yr > | < TimeOfEvnt(LocEvnt) + min> | <min/hr/dat/mon/yr~min/hr/dat/mon/yr > | < min/hr/dat/mon/yr ^ period >
Sensing and Detecting Capability • 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,
Summary of Contributions • We have prototyped an event-driven instant messaging application over integrated telecomm and datacomm networks. • Sensing/detecting capability analysis