Smart Office: Bluetooth Sensor Network + Instant Messaging
description
Transcript of Smart Office: Bluetooth Sensor Network + Instant Messaging
![Page 1: Smart Office: Bluetooth Sensor Network + Instant Messaging](https://reader035.fdocuments.net/reader035/viewer/2022062814/56816867550346895ddecd7b/html5/thumbnails/1.jpg)
tseng:1
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.
![Page 2: Smart Office: Bluetooth Sensor Network + Instant Messaging](https://reader035.fdocuments.net/reader035/viewer/2022062814/56816867550346895ddecd7b/html5/thumbnails/2.jpg)
2
Motivation: Instant Messaging Service Instant Messaging and Presence
Services Short Message Service (SMS) in GSM MSN Messenger / ICQ
![Page 3: Smart Office: Bluetooth Sensor Network + Instant Messaging](https://reader035.fdocuments.net/reader035/viewer/2022062814/56816867550346895ddecd7b/html5/thumbnails/3.jpg)
3
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.
![Page 4: Smart Office: Bluetooth Sensor Network + Instant Messaging](https://reader035.fdocuments.net/reader035/viewer/2022062814/56816867550346895ddecd7b/html5/thumbnails/4.jpg)
yctseng: 4
Scenario: Smart Office
Bluetooth-based Sensor Network Mike 經理接獲即時訊息 “會議己 ready
” 會議中… 助理要找 Mike 經理 , 並設定即時訊息 會議後… 助理收到即時訊息 “ Mike 經理己經回到 office”
(view demo: visitor-system-flash.exe)
![Page 5: Smart Office: Bluetooth Sensor Network + Instant Messaging](https://reader035.fdocuments.net/reader035/viewer/2022062814/56816867550346895ddecd7b/html5/thumbnails/5.jpg)
5
System Architecture Overview
Ethernet GSM Network
IP Network
BluetoothBluetooth
LocationServer
Sensor ASensor B
GSM SMSServer
WAP Gateway
Handset B
EventServer
WAP WebServer
SMPP Client
LocationDatabase
EventDatabase
Bluetooth
GSMConnection
ActionServer
SMPP Gateway
MailboxManagement
![Page 6: Smart Office: Bluetooth Sensor Network + Instant Messaging](https://reader035.fdocuments.net/reader035/viewer/2022062814/56816867550346895ddecd7b/html5/thumbnails/6.jpg)
6
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
![Page 7: Smart Office: Bluetooth Sensor Network + Instant Messaging](https://reader035.fdocuments.net/reader035/viewer/2022062814/56816867550346895ddecd7b/html5/thumbnails/7.jpg)
7
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.
![Page 8: Smart Office: Bluetooth Sensor Network + Instant Messaging](https://reader035.fdocuments.net/reader035/viewer/2022062814/56816867550346895ddecd7b/html5/thumbnails/8.jpg)
8
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.
![Page 9: Smart Office: Bluetooth Sensor Network + Instant Messaging](https://reader035.fdocuments.net/reader035/viewer/2022062814/56816867550346895ddecd7b/html5/thumbnails/9.jpg)
9
Message Flows (through NB)
Ethernet GSM Network
IP Network
Bluetooth
LocationServer
Sensor XSensor Y
HandsetCathy Notebook
Mike
WAP Gateway
EventServer
WAP WebServer
SMPP Client
LocationDatabase
EventDatabase
GSMConnection
ActionServer
SMPP Gateway
MailboxManagement
PDAAliceHandset + Bluetooth
Bob
1
3
4
5
67 2
Alice > X & Bob > X
Send to Mike
Alice > XBob > XBob > X
Alice > X & Bob > X
index of Action
Alice > X & Bob > X
index of Action
(Message for Mike,
index)
![Page 10: Smart Office: Bluetooth Sensor Network + Instant Messaging](https://reader035.fdocuments.net/reader035/viewer/2022062814/56816867550346895ddecd7b/html5/thumbnails/10.jpg)
10
When the Event Happening
Ethernet GSM Network
IP Network
BluetoothBluetooth
PDAAlice
LocationServer
Sensor XSensor Y
GSM SMSServer
HandsetCathy
NotebookMike
WAP Gateway
EventServer
WAP WebServer
SMPP Client
LocationDatabase
EventDatabase
GSMConnection
ActionServer
SMPP Gateway
MailboxManagement
Handset + BluetoothBob
1
2
3
45
6
7
8
Bob > X
Alice > X & Bob > Xindex of Action
Alice and Bob have arrived!
(Message for Mike,
index)
Alice > X & Bob > Xindex of Action
9
Handset + BluetoothBob
Bluetooth
![Page 11: Smart Office: Bluetooth Sensor Network + Instant Messaging](https://reader035.fdocuments.net/reader035/viewer/2022062814/56816867550346895ddecd7b/html5/thumbnails/11.jpg)
11
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
![Page 12: Smart Office: Bluetooth Sensor Network + Instant Messaging](https://reader035.fdocuments.net/reader035/viewer/2022062814/56816867550346895ddecd7b/html5/thumbnails/12.jpg)
12
Message Flows (through WAP)
Ethernet GSM Network
IP Network
Bluetooth Bluetooth
PDAAlice
LocationServer
Sensor XSensor Y
HandsetCathy Notebook
Mike
WAP Gateway
Handset + BluetoothBob
EventServer
WAP WebServer
SMPP Client
LocationDatabase
EventDatabase
GSMConnection
ActionServer
SMPP Gateway
MailboxManagement
1
23
45
6
(Mike < X)+3Send to Cathy(Mike < X)+3
Index of Action
(Message for Cathy,
index)
Mike < X
![Page 13: Smart Office: Bluetooth Sensor Network + Instant Messaging](https://reader035.fdocuments.net/reader035/viewer/2022062814/56816867550346895ddecd7b/html5/thumbnails/13.jpg)
13
When the Event Happening
Ethernet GSM Network
IP Network
Bluetooth
PDAAlice
LocationServer
Sensor XSensor Y
GSM SMSServer
HandsetCathy
WAP Gateway
Handset + BluetoothBob
EventServer
WAP WebServer
SMPP Client
LocationDatabase
EventDatabase
GSMConnection
ActionServer
SMPP Gateway
MailboxManagement
Bluetooth
NotebookMike
1
2
3
(Mike < X)+3Index of Action
(Message for Cathy,
index)
Mike < X
4 5
The device of Cathy is a
handset
67
8
9
(Mike < X)+3Index of Action
Mike is available
ACK
(Mike < X)+3Index of Action
3 min later!!
Bluetooth
NotebookMike
![Page 14: Smart Office: Bluetooth Sensor Network + Instant Messaging](https://reader035.fdocuments.net/reader035/viewer/2022062814/56816867550346895ddecd7b/html5/thumbnails/14.jpg)
14
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
![Page 15: Smart Office: Bluetooth Sensor Network + Instant Messaging](https://reader035.fdocuments.net/reader035/viewer/2022062814/56816867550346895ddecd7b/html5/thumbnails/15.jpg)
15
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, (),
![Page 16: Smart Office: Bluetooth Sensor Network + Instant Messaging](https://reader035.fdocuments.net/reader035/viewer/2022062814/56816867550346895ddecd7b/html5/thumbnails/16.jpg)
16
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 >
![Page 17: Smart Office: Bluetooth Sensor Network + Instant Messaging](https://reader035.fdocuments.net/reader035/viewer/2022062814/56816867550346895ddecd7b/html5/thumbnails/17.jpg)
17
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, 31 2
1 2 3... nn
A AA AL L L L LA A A A
![Page 18: Smart Office: Bluetooth Sensor Network + Instant Messaging](https://reader035.fdocuments.net/reader035/viewer/2022062814/56816867550346895ddecd7b/html5/thumbnails/18.jpg)
18
Sensing and Detecting Example
31 21 2 3... n
nA AA AL L L L L
A A A A
A 1
A2
A 3
![Page 19: Smart Office: Bluetooth Sensor Network + Instant Messaging](https://reader035.fdocuments.net/reader035/viewer/2022062814/56816867550346895ddecd7b/html5/thumbnails/19.jpg)
19
Calculation of Li
1
2 2 2-
2 0
2
3 0
2 2-
0
2 2 2
- -2
1 ( - ( )) 1 ( - ) ( - ( ))22 2
1 1 ( - ( ))62
1 1 ( - ( )) ( - ( )) 62
1 1 ( - ) ( - ( )) ( - ( )) 22
t T t
t
t t x
x
t T t
t x
t
T t T tLT
T x t x t T x tL dx dxT T T T
T y tL dydxT T T
y x t T y t dydxT T T
x t y x t T y t dydxT T T
-2 -
4 ...
T t T t
t x
L
![Page 20: Smart Office: Bluetooth Sensor Network + Instant Messaging](https://reader035.fdocuments.net/reader035/viewer/2022062814/56816867550346895ddecd7b/html5/thumbnails/20.jpg)
20
Summary of Contributions We have prototyped an event-driven instant messaging application over integrated telecomm and datacomm networks. Sensing/detecting capability analysis