صفحه 1:
CSCE 5013: Hot Topics in Mobile and Pervasive
Computing
Nilanjan Banerjee
University of Arkansas
Fayetteville, AR
nilanjan.banerjee@gmail.co
m
Hot Topic in Mobile and Pervasive Computing
صفحه 2:
Using the GPS device
absolute location
(lat, long)
* Your phone has a GPS receiver
— Consumes high power (200-300mW)
— With a large number of satellite fixes, accuracy
can be less than 10 m
— Since it is a receiver, need line of sight with the
sky
— Does not work indoors or in urban canyons (e.g,
NYC)
صفحه 3:
What do you get from a GPS receiver
* In addition to latitude and longitude
-
- Vertical and horizontal accuracy
— Speed
— The concept used is called AGPS
* Augmented GPS
* GPS + cell tower localization
* Faster than GPS since it takes a long time for a GPS
unit to get a fix from cold start
صفحه 4:
How does these technologies work (triangulation)
accuracy proportional
Satellite 1 number of satellite
صفحه 5:
API to GPS unit in WM7 phone
* System.Device.Location
* Class called GeoCoordinateWatcher
* Associated event: PositionChanged
* Function: start()
protected override void Initialize()
0
Ceocoordinscenatcher geoltatchar = naw GeaCoordinateMarcherOe
‘geunatcher.PositiceChanged «= OnGeahatcherPasitianChanged;
‘gounatcher StareO:
base_tnitialized:
0
void onceokatcherPosi tionchanged(object sender,
eoPost tionChangedtventargeeceoCoordinates args)
‘
ext = String.Format("Lacinude: “مما لمعنه
"Longitude: (1:63)\e\n" «
aleteude: (2)\rin\ein" 6
“a,
args.Positton. Location. Latitude,
args Position. Location.tangi tude,
args.Position. Location.Altitude,
args. Position. Timestamp);
صفحه 6:
A more interesting application: Using Bing Maps
and location
* Step 1: create a BingMap account
(www.bingmapsportal.com)
* Generate a key which will act as your credential
* Step 2: Install the Silverlight Bing Map Control SDK
* http://www.microsoft.com/downloads/en/details.aspx?
FamilyID=beb29d27-6f0c-494f-b028-1e0e3187e830
* To your project add a reference to
* Microsoft.Maps.MapControl
* Microsoft.Maps.MapControl.common
* Add a using Microsoft.Phone.Controls.Maps
* Cool thing about Silverlight BingMap control is that Maps
can be dragged and dropped on to the Visual Studio xaml
file
Lets write some code !!
صفحه 7:
Next class
* Reviews due for the following paper
* Talk about how to use the microphone unit
* Discuss LOC-1, LOC-2
