SlideShare a Scribd company logo
1 of 18
WiRun: You’ll need a
break!
20114262: Nam Giang
KSE631@Kaist
Motivation
 Sitting too long could
present you a cancer for
free.
 Sitting too long makes
people obese
 How long is too long?
 What is limit for a day?
Motivation
 Changing your behavior:
GET UP!
 But, it could be hard for
lazier!
 WiRun can help 
Algorithm
 Leverage density Wi-Fi environment at offices
Design
 Wi-Fi-based Location Monitor
 Break time monitor
 Activities challenges
 Walk out of room
 Walk out of office
 Activities log
Design: Activities
MainActivity
Set up Alarm
Manager
Display sitting
duration
SettingsActivity
Configure user’s
preference
HistoryActivity
Display user’s
historic places
where long sitting
takes action
MapActivity
Display a MapView
for Historic places
Design: Application work flow
Service:
LocationMonitor
Monitor location
change by watching
surrounding Aps list
BroadcastReceiver:
WifiReceiver
+Receives Wi-Fi scan result
+Updates Aps and History
database
+Monitor location change
+Monitor break time duration
BroadcastReceiver:
AlarmReceiver
Start/Stop LocationMonitor
service
BroadcastReceiver:
BootReceiver
Start monitoring at boot
Runable:
WifiScanner
Scan Wi-Fi for every short
scan periods
Determine when to check for
location
SQLite Database
+Aps list
+Historic Places
ContentProvider:
WirunDbProvider
Load database records
to History activity
Design: Wi-Fi-based Location
Monitor
 Short scan period: scan every
30s and accumulate the Aps to
Aps lists to increase accuracy
(deal with mobile’s Wi-Fi
device’s instability)
 Long scan period: every 15-
30min, perform a short scan
period
 After a long scan period reach,
start checking location change
by comparing old Aps list and
new Aps list
Design: Wi-Fi-based Location
Monitor
 If location has changed, reset
the application and monitor
again for long sitting period
 If location has not changed,
check whether or not long
sitting period is reached.
 If reached, start break time by
vibrating the phone,
monitoring strongest AP level
to determine location change,
therefore stop vibrating when
user is out of room or building.
Design: Wi-Fi-based Location
Monitor
When long sitting period is
reached in a location,
update historic database
for such location.
After break time period,
reset the application and
start monitoring again
Design: Break time monitor
Start Wi-Fi scan for every 10s to
determine user location change
Location change is monitored by
monitoring last strongest AP level
After some number of scans (called
“fun number”, users do not tend to
comeback to their seat, i.e., they’re
already enjoy their break) increase Wi-
Fi scan duration to 30s to save batery
Design: Activity challenge
Walk out of Room:
monitor the level of
last strongest AP
Walk out of building:
check whether or not
there is no AP in scan
result list
Design: Historic places
Every time location not change is
known, record date, place and
sitting duration into history
database
Implementation
Implementation
Implementation
Trivial
The vibrator code is Morse code with
dot: short vibrate, dash: long
vibrate, short gap between dot and
dash, medium gap between letters,
and long gap between words
The translated Morse code is “get
the hell out of there!”
Thank you for a great course!
Do you have any comments or
questions?

More Related Content

Similar to WiRun

Indoor gps via QR codes
Indoor gps via QR codesIndoor gps via QR codes
Indoor gps via QR codesVaibhav Sharma
 
Cse rover-technology-report
Cse rover-technology-reportCse rover-technology-report
Cse rover-technology-reportnagxenapp
 
Lecture Slides for Location based Services [Android]
Lecture Slides for Location based Services [Android]Lecture Slides for Location based Services [Android]
Lecture Slides for Location based Services [Android]Nehil Jain
 
Conducting site surveys for wlan performance and reliability
Conducting site surveys for wlan performance and reliabilityConducting site surveys for wlan performance and reliability
Conducting site surveys for wlan performance and reliabilityKen Scott
 
Workshop: Building location-aware mobile apps with iBeacons
Workshop: Building location-aware mobile apps with iBeaconsWorkshop: Building location-aware mobile apps with iBeacons
Workshop: Building location-aware mobile apps with iBeaconsHeather Downing
 
(Slides) UbiREMOTE: Framework for Remotely Controlling Networked Appliances t...
(Slides) UbiREMOTE: Framework for Remotely Controlling Networked Appliances t...(Slides) UbiREMOTE: Framework for Remotely Controlling Networked Appliances t...
(Slides) UbiREMOTE: Framework for Remotely Controlling Networked Appliances t...Naoki Shibata
 
InMobi inDecode - All About Location on Mobile : Ian Anderson
InMobi inDecode -  All About Location on Mobile : Ian AndersonInMobi inDecode -  All About Location on Mobile : Ian Anderson
InMobi inDecode - All About Location on Mobile : Ian AndersonInMobi
 
RSS and Sensor Fusion Algorithms for Indoor Location Systems on Smartphones
RSS and Sensor Fusion Algorithms for Indoor Location Systems on SmartphonesRSS and Sensor Fusion Algorithms for Indoor Location Systems on Smartphones
RSS and Sensor Fusion Algorithms for Indoor Location Systems on SmartphonesUOC Universitat Oberta de Catalunya
 
IEEE PROJECT TOPICS & ABSTRACTS BY SOFTRONIICS
IEEE PROJECT TOPICS & ABSTRACTS BY SOFTRONIICSIEEE PROJECT TOPICS & ABSTRACTS BY SOFTRONIICS
IEEE PROJECT TOPICS & ABSTRACTS BY SOFTRONIICSaswin tbbc
 
Mobile sensing kolkata lab tac_tics2014
Mobile sensing  kolkata lab tac_tics2014Mobile sensing  kolkata lab tac_tics2014
Mobile sensing kolkata lab tac_tics2014Arpan Pal
 
Sophisticated Sensor - Video UNit (SSVU)
Sophisticated Sensor - Video UNit (SSVU)Sophisticated Sensor - Video UNit (SSVU)
Sophisticated Sensor - Video UNit (SSVU)Nightcolt
 
Wireless Site Survey
Wireless Site SurveyWireless Site Survey
Wireless Site SurveyHuda Seyam
 
Ijsartv6 i336124
Ijsartv6 i336124Ijsartv6 i336124
Ijsartv6 i336124aissmsblogs
 
Bubble sensing
Bubble sensingBubble sensing
Bubble sensingSam Ram
 

Similar to WiRun (20)

Week 4
Week 4Week 4
Week 4
 
Indoor gps via QR codes
Indoor gps via QR codesIndoor gps via QR codes
Indoor gps via QR codes
 
Participatory urbanism
Participatory urbanismParticipatory urbanism
Participatory urbanism
 
Cse rover-technology-report
Cse rover-technology-reportCse rover-technology-report
Cse rover-technology-report
 
2013 Lecture3: AR Tracking
2013 Lecture3: AR Tracking 2013 Lecture3: AR Tracking
2013 Lecture3: AR Tracking
 
Lecture Slides for Location based Services [Android]
Lecture Slides for Location based Services [Android]Lecture Slides for Location based Services [Android]
Lecture Slides for Location based Services [Android]
 
Conducting site surveys for wlan performance and reliability
Conducting site surveys for wlan performance and reliabilityConducting site surveys for wlan performance and reliability
Conducting site surveys for wlan performance and reliability
 
Workshop: Building location-aware mobile apps with iBeacons
Workshop: Building location-aware mobile apps with iBeaconsWorkshop: Building location-aware mobile apps with iBeacons
Workshop: Building location-aware mobile apps with iBeacons
 
(Slides) UbiREMOTE: Framework for Remotely Controlling Networked Appliances t...
(Slides) UbiREMOTE: Framework for Remotely Controlling Networked Appliances t...(Slides) UbiREMOTE: Framework for Remotely Controlling Networked Appliances t...
(Slides) UbiREMOTE: Framework for Remotely Controlling Networked Appliances t...
 
InMobi inDecode - All About Location on Mobile : Ian Anderson
InMobi inDecode -  All About Location on Mobile : Ian AndersonInMobi inDecode -  All About Location on Mobile : Ian Anderson
InMobi inDecode - All About Location on Mobile : Ian Anderson
 
What is UWB?
What is UWB?What is UWB?
What is UWB?
 
RSS and Sensor Fusion Algorithms for Indoor Location Systems on Smartphones
RSS and Sensor Fusion Algorithms for Indoor Location Systems on SmartphonesRSS and Sensor Fusion Algorithms for Indoor Location Systems on Smartphones
RSS and Sensor Fusion Algorithms for Indoor Location Systems on Smartphones
 
IEEE PROJECT TOPICS & ABSTRACTS BY SOFTRONIICS
IEEE PROJECT TOPICS & ABSTRACTS BY SOFTRONIICSIEEE PROJECT TOPICS & ABSTRACTS BY SOFTRONIICS
IEEE PROJECT TOPICS & ABSTRACTS BY SOFTRONIICS
 
Mobile sensing kolkata lab tac_tics2014
Mobile sensing  kolkata lab tac_tics2014Mobile sensing  kolkata lab tac_tics2014
Mobile sensing kolkata lab tac_tics2014
 
Sophisticated Sensor - Video UNit (SSVU)
Sophisticated Sensor - Video UNit (SSVU)Sophisticated Sensor - Video UNit (SSVU)
Sophisticated Sensor - Video UNit (SSVU)
 
Wireless Site Survey
Wireless Site SurveyWireless Site Survey
Wireless Site Survey
 
Sensor id overview_ppt
Sensor id overview_pptSensor id overview_ppt
Sensor id overview_ppt
 
Ijsartv6 i336124
Ijsartv6 i336124Ijsartv6 i336124
Ijsartv6 i336124
 
Soli sensor
Soli sensorSoli sensor
Soli sensor
 
Bubble sensing
Bubble sensingBubble sensing
Bubble sensing
 

WiRun

  • 1. WiRun: You’ll need a break! 20114262: Nam Giang KSE631@Kaist
  • 2. Motivation  Sitting too long could present you a cancer for free.  Sitting too long makes people obese  How long is too long?  What is limit for a day?
  • 3. Motivation  Changing your behavior: GET UP!  But, it could be hard for lazier!  WiRun can help 
  • 4. Algorithm  Leverage density Wi-Fi environment at offices
  • 5. Design  Wi-Fi-based Location Monitor  Break time monitor  Activities challenges  Walk out of room  Walk out of office  Activities log
  • 6. Design: Activities MainActivity Set up Alarm Manager Display sitting duration SettingsActivity Configure user’s preference HistoryActivity Display user’s historic places where long sitting takes action MapActivity Display a MapView for Historic places
  • 7. Design: Application work flow Service: LocationMonitor Monitor location change by watching surrounding Aps list BroadcastReceiver: WifiReceiver +Receives Wi-Fi scan result +Updates Aps and History database +Monitor location change +Monitor break time duration BroadcastReceiver: AlarmReceiver Start/Stop LocationMonitor service BroadcastReceiver: BootReceiver Start monitoring at boot Runable: WifiScanner Scan Wi-Fi for every short scan periods Determine when to check for location SQLite Database +Aps list +Historic Places ContentProvider: WirunDbProvider Load database records to History activity
  • 8. Design: Wi-Fi-based Location Monitor  Short scan period: scan every 30s and accumulate the Aps to Aps lists to increase accuracy (deal with mobile’s Wi-Fi device’s instability)  Long scan period: every 15- 30min, perform a short scan period  After a long scan period reach, start checking location change by comparing old Aps list and new Aps list
  • 9. Design: Wi-Fi-based Location Monitor  If location has changed, reset the application and monitor again for long sitting period  If location has not changed, check whether or not long sitting period is reached.  If reached, start break time by vibrating the phone, monitoring strongest AP level to determine location change, therefore stop vibrating when user is out of room or building.
  • 10. Design: Wi-Fi-based Location Monitor When long sitting period is reached in a location, update historic database for such location. After break time period, reset the application and start monitoring again
  • 11. Design: Break time monitor Start Wi-Fi scan for every 10s to determine user location change Location change is monitored by monitoring last strongest AP level After some number of scans (called “fun number”, users do not tend to comeback to their seat, i.e., they’re already enjoy their break) increase Wi- Fi scan duration to 30s to save batery
  • 12. Design: Activity challenge Walk out of Room: monitor the level of last strongest AP Walk out of building: check whether or not there is no AP in scan result list
  • 13. Design: Historic places Every time location not change is known, record date, place and sitting duration into history database
  • 17. Trivial The vibrator code is Morse code with dot: short vibrate, dash: long vibrate, short gap between dot and dash, medium gap between letters, and long gap between words The translated Morse code is “get the hell out of there!”
  • 18. Thank you for a great course! Do you have any comments or questions?