ECOPS : Energy-Efficient Collaborative Opportunistic Positioning for Heterogeneous Mobile Devices

The fast growing popularity of smartphones and tablets enables us to use various intelligent mobile applications. As many of those applications require position information, smart mobile devices provide positioning methods such as Global Positioning System (GPS), WiFi-based positioning system (WPS), or Cell-ID-based positioning service. However, those positioning methods have different characteristics of energy-efficiency, accuracy, and service availability. In this paper, we present an Energy-Efficient Collaborative and Opportunistic Positioning System (ECOPS) for heterogeneous mobile devices. ECOPS facilitates a collaborative environment where many mobile devices can opportunistically receive position information over energy-efficient and prevalent WiFi, broadcasted from a few other devices in the communication range. The position-broadcasting devices in ECOPS have sufficient battery power and up-to-date location information obtained from accurate but energy-inefficientGPS. A position receiver in ECOPS estimates its location using a combination of methods including received signal strength indicators and 2D trilateration. Our field experiments show that ECOPS significantly reduces the total energy consumption of devices while achieving an acceptable level of location accuracy. ECOPS can be especially useful for unique resource scarce, infrastructureless, and mission critical scenarios such as battlefields, border patrol, mountaineering expeditions, and disaster area assistance.


Introduction
Smart mobile devices such as smartphones and tablets are rapidly becoming prevalent in our lives.They have spurred a paradigm shift from traditional restricted phone applications to intelligent mobile applications such as location-based, context-aware, and situation-aware services.For example, a social-network-based traffic information system [1] allows each mobile user to report and use real-time traffic information, in addition to the archived traffic information from the US Department of Transportation.
As many of those application services require position information, smart mobile devices provide various positioning services via Global Positioning System (GPS) [2], WiFibased positioning system (WPS) [3], or Cell-ID Positioning [4].Being dedicated equipment for positioning, GPS becomes available for many smart devices as an additional feature and is considered to be an accurate and preferred method for location-based services (LBSs) [5,6].However, its high energy consumption, due to the Time To First Fix (TTFF), becomes a significant drawback.WPS approximates a position from the location information of a nearby wireless access point (AP) that is stored in the database.Its energy efficiency is much better than GPS, and the accuracy is moderate.As WiFi is a de facto standard in wireless local area network (WLAN) communication, it is broadly available on most smart devices.However, the service is limited to indoor or urban areas where the access points are densely populated.Cell-ID Positioning provides an approximate location from the serving cell tower, where a cell area range is around 100 ∼ 500 m in urban areas, but it can span up to 10 Km for rural areas.Although this is the most power saving approach, due to a large error range caused by the coarse cell tower density, Cell-ID Positioning cannot offer the utility of most LBS applications.In addition, mobile devices such as the WiFi version of tablets are not fully equipped with 3G/4G data chips at the present time even though 3G and 4G wireless networks provide enough bandwidth to enable explicit support for real-time LBS.We have summarized the characteristics of positioning methods ( [7]) in Table 1.
Energy efficiency while maintaining required accuracy for the given service limitations is one of the most critical issues in mobile devices, due to limited battery life and the high energy consumption of applications.As different positioning methods available on a mobile device have different characteristics with respect to accuracy, energy-efficiency, and service availability, there have been several proposals for dynamic selection of a positioning method on an individual device.For example, [8] uses an accelerometer for movement detection to power cycle GPS, if the device is not mobile.However, the effectiveness of most of the existing heuristics is limited by equipment constraints or service availability, as the applications choose a preferred positioning method that is available within an individual device.
In this paper, we propose ECOPS to facilitate a WiFi hotspot mode [9] or WiFi Direct mode [10] based approximation in collaboration with a few available GPS broadcasting devices under budget constraints.ECOPS is a collaborative positioning method between WiFi and GPS mobile devices, in addition to a positioning method selection heuristic within a mobile device.It can achieve moderate accuracy with low energy usage.Although there is a previous collaborative work [8] that pairs two devices via Bluetooth to save GPS power cycle, the approach needs both GPS and Bluetooth on both devices.Instead, ECOPS supports heterogeneous methods among mobile devices.There are many mobile devices including the majority of current tablets that only support a basic wireless communication method which is WiFi.The WiFi-only device can obtain position information from a GPS device with ECOPS.This proposed system can operate opportunistically, where each device can resolve the location via various available methods including trilateration [11] with three GPS broadcasting devices and a received signal strength indicator (RSSI) [12] or approximation with geomagnetic sensors [13] and a single GPS device without requiring any WiFi AP.
We implemented ECOPS using Android-powered mobile devices such as smartphones and tablets.The evaluation results show that ECOPS significantly saves the total energy consumption of the devices while achieving a good level of location accuracy.In addition, it enables constrained devices to enjoy location-based services that would otherwise not be possible.
The rest of the paper is organized as follows.Potential application scenarios are described in Section 2. Section 3 discusses the existing and state-of-the-art techniques.A detailed explanation of the proposed system is presented in Section 4. The performance evaluations and experimental scenarios are explained in Section 5. Finally, we conclude the paper in Section 6.

Application Scenarios
While security and social incentive issues are not in the scope of this paper, the proposed opportunistic and collaborative positioning scheme can be especially useful for unique resource scarce and mission critical applications.Such examples include border patrol, battlefields, mountaineering expeditions, and disaster area assistance.
For example, suppose a team of border patrol officers is searching for an illegal immigrant in the border area.In some areas of rigid terrain, GPS and cellular signals can be lost in a canyon.Some projects [14] employ a low-altitude tethered aerostat to set up a temporary WiFi hotspot.To help with positioning, a few officers stay at the top of the valley to relay their GPS position information to the officers searching down in the valley.Such a collaborative positioning is a natural application scenario of ECOPS.
In a battlefield scenario, when a platoon is air-dropped into a war zone, it is nearly impossible to find WPS services in the surroundings.Even with the availability of technology like LANdroids [15] to provide a network in such conditions, it is not a simple task.Also, it is crucial for soldiers to have accurate location information in the battlefield.In such a scenario, the capabilities of ECOPS can be exploited to maintain accurate location information while reducing overall energy consumption.Although one may not have a strong incentive to take a lead and offer location information for others, such concerns are lifted immediately if a leadership hierarchy preexists in the application scenario.For instance, when a platoon is being deployed in a battlefield, the platoon leader chooses to be the primary location broadcaster using ECOPS along with a few others at the top of the hierarchy.The other soldiers in the unit are able to estimate their location information based on the geocoordinates they receive from their unit's command.This will result in fewer devices from the unit querying satellites for location information and reduce the overall energy consumption.Extending the lifetime of devices during the operation is a mission critical parameter as the duration of an operation is not fixed and often tends to be longer than expected.Under the Battlefield Air Targeting Man Aided Knowledge (BATMAN) [16] project, the United States Air Force is actively seeking to equip their soldiers with modern Android-powered smartphones to obtain accurate location information with high energy efficiency.Modified versions of Android [17,18] enable the desired level of security for military use.Such projects can benefit greatly by ECOPS.
Another scenario where ECOPS can be extremely useful is during natural calamities.In such cases, emergency

Related Work
Positioning schemes on mobile devices have been a long standing topic of exploration.This resulted in three main positioning techniques using either the information provided by the GPS, WPS, or Cell-ID Positioning.Also, there have been several research proposals for specific environments.

Global Positioning System (GPS). The Global Positioning
System (GPS) is a satellite navigation system that provides location and time information anywhere on earth with four or more GPS satellite signals.It is originally deployed and maintained by the United States government and is now freely accessible to anyone [2].The GPS provides very high level of accuracy, but suffers from a high TTFF due to the large distance between the GPS receiver and serving satellites.This problem has been somewhat addressed by the use of assisted GPS (aGPS) that relies on the cellular or internet infrastructure to get a faster lock on the serving satellites while obtaining precise time information from the network.Within the navigation message continuously broadcasted by each of the satellites in the constellation, the GPS receiver looks for three important pieces of data as illustrated in Figure 1.The first piece of data consists of the GPS date and time information.It additionally also consists of the health statistics of the satellite.The ephemeris data forms the second important piece and allows the GPS receiver to calculate the position of the satellite and is broadcasted every 30 seconds.The ephemeris data is valid for no longer than four hours.The third important piece is the almanac data which provides approximate information concerning the rest of the satellites.This data is transmitted over 12.5 minutes and is valid for a maximum of 180 days.The almanac data can be obtained from any satellite, and it enables the GPS receiver to determine which particular satellite to search for next.As the signal from the selected satellite becomes directly available, the GPS receiver then downloads the second important data, that is, the ephemeris data.It is absolutely necessary that the GPS receiver has the satellite's complete copy of the ephemeris data to determine its position.In case the signal is lost in the middle of acquiring this data, the GPS receiver will have to discard whatever data was downloaded and start searching for a new satellite signal.
Once the GPS receiver has ephemeris data directly from three or more satellites, it can carry out various methods to accurately determine its own location.These methods involve and are not restricted to 3D trilateration, Bancroft's method, and multidimensional Newton-Raphson calculations.Due to the high propagation delays, getting the ephemeris and almanac data can take up to 15 minutes for a device just out of the factory, and then around ∼20 seconds after the initial configuration.To expedite this process, some GPS receivers can use multiple channels for faster fixes.Another strategy is to obtain the ephemeris and almanac data from a faster network like the cellular network or the internet as in the case of a GPS.

WiFi-Based Positioning System (WPS). WPS maintains an extensive database of WiFi access points (APs) along
with their geographic locations [19,20].This information has to be collected painstakingly over a large duration of time and is vulnerable to changes in the location of APs or the discontinuation of their service.The information of APs-SSID and geographic location can be collected manually or in a more automated way by retrieving the GPS location of smart devices connected to the AP and associating that information with the AP.Once such a large and dedicated database is ready and a device is in the vicinity of an AP, or several APs, it can provide the RSSI values and the SSID of the APs to the WPS servers.The WPS servers, based on proprietary techniques, apply filtering approaches and trilateration techniques to this data and determine the accurate location of the smart device.This geographic location information is then relayed back to the smart device which can exploit it for various LBSs.The illustration of WPS is depicted in Figure 2.
While the WPS service approaches work well in terms of energy efficiency [21][22][23], they are not globally available for users.A solution leveraging the existing infrastructure, such as APs without requiring any specialized infrastructures for localization, has been proposed in [24].However, since this  localization scheme is limited to the indoors and still relies on infrastructure, such as APs, it cannot be useful outdoors where the WiFi signals are neither dense enough nor covered.

Cell-ID Positioning.
In Cell-ID Positioning, a mobile device obtains its position from the geographic location of its associated base transreceiver station (BTS), with an error range proportional to the signal strength within a cell.The mobile device can estimate its location as the BTS periodically broadcasts its Cell-ID along with its location.Once this information is available to the mobile device, it can use the location of the BTS as its own location with the error calculated using the propagation model.Another technique that may be used for cell phones to estimate their location is to observe the delay in receiving a special message broadcasted by the BTS from the time it was transmitted.This information is used by the mobile device to estimate its distance from the BTS.
Note that a cell size can be very large especially in rural areas and highways where the density of cellular towers is very low.One cellular tower is often capable for serving up to 5 Km radius.As this large cell size leads to a significant error range, other nearby cell tower signals may be used in order to improve the accuracy [4,25].Such approaches also exploit the fading phenomenon independently or along with predictive techniques to improve the accuracy of Cell-ID Positioning.However, the accuracy is still limited as the propagation model needed for the trilateration does not work well, due to complex signal fading behavior over long distances.The illustration of Cell-ID Positioning is depicted in Figure 3. [3,26], or use extra high-end sensors and exploit the available information from an individual device [26][27][28], research proposals mostly aim to improve the positioning accuracy or energy efficiency through algorithmic approaches [8,23,24,[29][30][31][32][33].

Recent Research Proposals. While most of commercial approaches heavily depend on infrastructures
The work in [31][32][33] attempt to learn a known location from a training phase for a better location accuracy.The authors of [33] employ indoor positioning, and perform fingerprinting and training of the known space using multiple sensors in a smartphone such as WiFi radio, cellular communications radio, accelerometer, and magnetometer.In order to improve Cell-ID location accuracy in low-end cell phones where neighboring cell tower information is not available, [32] uses RSSI from only the associated cell tower and leverages the signal strength history to estimate the location.The Cell-ID Aided Positioning System (CAPS) [31] relies on the continuous mobility and position history of a user to obtain better location accuracy over a basic cell tower-based approach.It uses Cell-ID sequence matching to estimate current position based on the history of Cell-ID and GPS position sequences that match the current Cell-ID sequence.CAPS assumes that the user moves on the same routes repeatedly and has the same cellular chip and infrastructure availability.
A few studies address energy efficiency of smartphones using power duty cycling techniques [7,8,31] that use a combination of the basic positioning techniques in a smartphone.The authors of [7] use different positioning schemes depending on the condition, for the purpose of target tracking.In the scheme, energy-efficient but inaccurate Cell-ID Positioning or WPS is used when the target is distant, while accurate but energy-inefficient GPS is used when the target is close.The rate-adaptive positioning system (RAPS) [8] uses built-in sensors in a smartphone to determine if the phone has moved beyond a certain threshold and decides whether to turn on the GPS or not.RAPS also stores the space-time history of the user's movements to estimate how to yield high energy efficiency.Another idea presented by the authors involves a Bluetooth-based position synchronization (BPS) in which devices share their location information over a Bluetooth connection.While a Bluetooth connection consumes less power as compared to a WiFi ad hoc, it also limits the range of communication to less than 10 m.Our work has advantages over the basic BPS technique in several aspects.Not only does a WiFi ad hoc mode give us a better range, but we have also taken into account the heterogeneity amongst the devices in terms of availability of a GPS chip or cellular connection.We expect all the devices to have at least a WiFi module present onboard.In BPS, once location information is obtained from a neighboring device, only a fixed error range of 10 m (e.g., same as the range of a typical Bluetooth) is associated with that information.However, in ECOPS we exploit the RSSI values of the connection to determine the accurate distance between the two devices, and when three or more location transmitting devices are available, the trilateration technique achieves pinpoint locating capabilities.
The work in [34] proposed to use minimal auxiliary sound hardware for acoustic ranging in order to improve the accuracy.The acoustic ranging technique estimates the distance among peer phones, then maps their locations jointly against a WiFi signature map subject to ranging constraints.It is a WPS augmentation technique to improve the accuracy over a pure WPS.
Our approach is unique in that we use a collaborative approach rather than focusing on the information in an individual device and do not rely on any special hardware or infrastructure such as WPS or Cell-ID Positioning.Note that we only use a small amount of GPS information and the WiFi ad hoc mode of mobile nodes.ECOPS is specifically aimed at resource constrained environments such as battlefields where GPS is the only available positioning infrastructure, and WiFi ad hoc mode is readily available in most mobile devices while allowing good network range (up to 100 m).Beside controlling energy usage and location accuracy, we allow to use heterogeneous mobile device types.

ECOPS Approach
In this section, we discuss ECOPS algorithms in detail.Figure 4 shows an ECOPS deployment example.It consists of mobile devices with heterogeneous positioning methods available such as GPS, WiFi, and Cell-ID.These devices virtually establish an ad hoc network using WiFi to build a collaborative positioning environment.In the established ECOPS ad hoc network, a device may function as either a position broadcaster (PB) or a position receiver (PR).A GPSequipped device with sufficient battery life and up-to-date location information becomes a candidate for a PB.Other devices with no GPS that need current location information will become PRs.
Three algorithms are presented for the overall operation of the ECOPS.Algorithm 1 describes the initial procedure deciding whether a device becomes a PB or a PR.After the initial decision, Algorithms 2 and 3 depict how the devices in ECOPS collaboratively maintain their most updated location information as a PB or a PR, respectively.For GPS-equipped devices, the role of the devices can be changed during their operation according to their residual energy level (i.e., PB ↔ PR).As illustrated in Algorithm 1, a device, once it starts ECOPS operation, will check the time elapsed since the device got the location information (  ) and residual power (  ) to see if it is qualified for being a PB.Since we are looking for the devices that have the most recent location information with enough residual power, the device with the conditions such as   ≥  min and  decay ≥  can be a PB, where  min is the minimum residual energy that a PB has to maintain and  decay is the level of the validity with respect to time for the location information, defined by  where   is the maximum time in which the location information is considered to be valid.If a device is equipped with a GPS receiver and satisfies the  min , it can be a PB.Once it becomes a PB, it will start its WiFi hotspot mode and serve the most up-to-date location information to a PR when a PR requests the location information.An Android device cannot use the WiFi Internet service while it is in the WiFi hotspot mode.However, with (Android 4.0), WiFi Direct technology can be used for PBs.In a PB mode with WiFi Direct, the users can enjoy their WiFi Internet service and provide the most up-to-date location information simultaneously.The device without a GPS receiver will automatically be a PR once it enters ECOPS, and then search for PBs around it.
As shown in Algorithm 2, once the device enters the PB mode, it plays a role of the PB while it satisfies the  min constraint.The threshold  is a system parameter that can be varied according to the requirement of applications.The tradeoff between location accuracy and energy consumption can be adjustable using .An application requiring high accuracy will select a small amount of , but a high value of  is used for applications requiring low energy consumption.The PB will check  decay to see if the current location information is adequate (e.g.,  decay ≥ ) before broadcasting it.
In Algorithm 3, a PR will collect the possible number of GPS coordinates and corresponding RSSI values and apply opportunistic localization as illustrated in Figure 5.If a PR finds a PB within the threshold distance ( meters), then a PR uses the GPS coordinate from a PB as is.The parameter  is controllable and users of ECOPS can set it according to their preference.Once a PR estimates its location, it can become a PB.However, we do not use those cases in our experiments to avoid the additional errors that will be induced from PBs and focus on the PR's accuracy.
ECOPS is opportunistic, meaning that getting the most updated location via trilateration is not limited by the number of available PBs. Supposing that there is only one GPS broadcaster in Figure 5, say node , then the center of an error range of the circle  3 will become the PR's approximated position.Another possible situation is when there are two PBs, say nodes  and ; then the middle point of two possible points,  and   , is selected as an approximated PR location.The accuracy of the estimated location will range from one point where the two circles intersect in the best case to the diameter of the smaller circle in the worst case, respectively.In order to get the most accurate location information for a PR, we need at least three PBs to provide their location information obtained from the GPS receiver along with the RSSI values, so that we can build an absolute coordinate system from the relative coordinate system.For example, in Figure 5, we calculate the distance parameters , , , and  using the algorithm described in [35] in order to obtain the values of  and .We convert the obtained distances  and  into the unit of the GPS coordinates to get the final calculated GPS coordinate.The distance between two GPS coordinates, (lat 1 , lng 1 ) of  and (lat 2 , lng 2 ) of , is computed using the haversine formula that gives a spherical distance between two points from their longitudes and latitudes [35,36].The formula is described in (2) and the formula for the value of dist is shown in (3): (3) Thus, we can calculate relative coordinates (, , , and ) as follows: The distances ( 1 ,  2 , and  3 ) between node  and other nodes (, , and ) can be derived from the measured RSSI values of node , using the formula from the path loss propagation model [37]: where RSSI is the received power which is a function of the distance between the transmitter and the receiver (T-R),  is the signal propagation constant (also called propagation exponent),  is the T-R separation distance in meters, and L is the system loss factor.Based on (5), we derived the distance () between two devices using the average RSSI value as follows: Now, the three circles in Figure 5 can be represented by the following, respectively: where the location of node  is set to (0, 0).We obtain the relative coordinate of PR node  from node , (, ), by calculating the point where these three circles intersect.In other words, we want to calculate the coordinate values of  and  that simultaneously satisfy (7), (8), and (9).We first extend ( 8) and ( 9) as follows: By applying ( 7) into (10), the circles  2 and  3 can be written as Finally, the node 's coordinate that satisfies the three circles is attained by replacing  and  with  and , respectively, in (11).We can formulate the equations in terms of  and  as follows: where  We have implemented ECOPS as an Android application for a feasibility test and analysis.Figure 7 shows the screenshots of ECOPS application.Figure 7(a) displays the main screen that allows users to manually select an ECOPS device option either in PB mode or PR mode, or to request the selection automatically based on various parameters such as the remaining energy and sensor availabilities.Figure 7(b) presents a PB screen that lists the broadcasting location information.Figure 7(c) shows a PR screen that lists the received information and measured distance using the RSSI value.Although the current implementation is on an application level, as illustrated in Figure 6, it is still capable of making the received location information available to other application services.It will eventually be implemented within the application framework so that other applications can use the ECOPS services via APIs.

Experiments
In this section, we present the evaluation results of ECOPS in terms of energy efficiency and location accuracy.We have implemented an ECOPS Android application and used several Android smartphones including Samsung Galaxy Nexus S running Android version 2.3.6 and two LG Optimus V running Android version 2.2.2.We have turned the GPS off on some of the devices to mimic heterogeneous devices.

Validation of Smartphone GPS Accuracy and Propagation
Model.As a first step, we test the accuracy of commodity GPS receivers on smartphones since they are not dedicated devices like the navigation devices for positioning.We have measured the accuracy of smartphones' GPS, by walking around   the Kansas City area while carrying three smartphones.As shown in Figure 8, the GPS collected locations are presented accurately except for a little error between tall buildings (∼10 m).Next, we validate the path loss model for correlation of the distance between a WiFi signal emitter and receiver with the measured RSSI values at the signal receiver for both indoor and outdoor environments.We compared the measured RSSI value with the theoretical RSSI value from the path loss model.As RSSI values often vary at each time of measurement for a given location, we used an averaged RSSI value with multiple samples (e.g., 1,000 samples within a few seconds).In Figures 10 and 11   factor value () is set to 30.For the indoor environment, since we measured the RSSI between two devices while they were in the line-of-sight, we set the system loss factor () to 0.6.For the outdoor environment, we used  = 1.9.As evidenced in the figures, we observe that the path loss model works well for us in estimating the distance.

Energy Consumption.
We now compare the total energy consumption of ECOPS devices to that of devices with GPS only scheme in various settings.First, we compare the energy consumption of a node that is ECOPS PR with a node using only GPS at per second granularity as illustrated in Figure 9.This power consumption profiling was done using PowerTutor [38].The GPS uses 429 mW/s continuously once it is powered up and takes several seconds to power down which adds up to the energy consumption.Meanwhile, the WiFi module once powered up uses 720 mW/s in an active state and 38 mW/s when in an idle state.During the experiment, for the same operational time of one minute, an ECOPS PR node uses only 3000 mW of energy in total whereas the GPS-only node uses 7432 mW of total energy.This clearly shows that an ECOPS PR is more energy efficient than a GPS-only node.These values are for an LG Optimus V model in particular, and similar for most smartphones.Next, we contrast the energy consumption of a node that is ECOPS PR with a node using only GPS while varying the operational time with 1 minute increments as illustrated in Figure 12.We do this experiment to analyze the effectiveness of ECOPS over a duration of time.It shows that ECOPS is increasingly energy efficient with the elapsed time over the GPS only scheme.
In Figure 13, we compare the energy consumption of nodes that are ECOPS PR with nodes using only GPS while varying the number of devices in the network.We do this experiment to analyze the energy efficiency of ECOPS as the number of devices in the network scales.Note that for the ECOPS PR scheme, the PRs receive GPS data from three PBs and their energy consumption is accounted for in the results.The energy efficiency of ECOPS compared with the GPS only scheme is clear from Figure 13 and becomes increased substantially as the number of devices in the network scales.

Location Accuracy.
In this section, we evaluate the location accuracy of ECOPS as compared to that of GPS, WPS, and Cell-ID Positioning.We tested ECOPS in a soccer field using four smartphones for the accuracy measurements.The soccer field was chosen, so that we have a clear and unhindered view of the sky, and in turn the experimental results are not influenced by the GPS position errors, and the ECOPS errors are precisely measured.We turned on GPS for three devices and turned it off for a device that acted as the PR.In order to measure the location accuracy, as illustrated in  Figure 14, we placed the PR device at the center of the area and moved the other PB devices around multiple locations within the soccer field.The PR device computed its location using the measured RSSI values, and GPS coordinates from the PBs, and the trilateration technique described in Section 4.
We have moved the PBs to various places around the PR and recorded the PR's computed locations.As shown in Figure 15, we observed that ECOPS achieves a minimum error range of 2.32 m and a maximum error range of 33.31 m.While from Figure 16 we can observe that nearly 60% of these locations are within a 10 m error range and less than 10% have an error range greater than 15 m.The results represent that   ECOPS can achieve a higher location accuracy than WPS while using less energy than GPS receivers.Also, note that the error ranges we observe here are an amalgamation of the general GPS receiver error from the PBs and the distance measurement error from the RSSI values.Finally, we compare the errors of different positioning methods in Figure 17.As before, a smartphone that needs positioning is located at the center of soccer field.The network positioning API in Android obtains the location information either from WPS or Cell-ID Positioning.In order to ensure the Cell-ID Positioning in Android, the smartphone acquired the location from network positioning API while turning off the WiFi signal.The location information received was off by almost 300 m.Together with the location, it also suggested its own estimated error range of 1,280 m associated with it.Clearly, such information is too    inaccurate to be used in most of LBS application scenarios.As for WPS, the smartphone obtained the location from Android network positioning API while turning off cellular signal.Note that WPS is not typically available in outdoor environment.Thus, we used an average WPS error from what we experimented at multiple locations in Kansas City area where WPS is available and found it to be 60 m.It is the dotted blue line in Figure 17.While the GPS-based location information proved to be the most accurate with an error range of about 2 m, ECOPS achieved the accuracy ranging from 2.32 m to 33.31 m.This is better than the performance of a WPS and fairly close to GPS accuracy while saving energy costs.This encourages us to comment that even when WPS service might be available, using ECOPS will facilitate a smartphone to receive more accurate location information at the same energy cost.

Conclusion
We have presented an Energy Efficient Collaborative Opportunistic Positioning System (ECOPS) for heterogeneous mobile devices.Unlike existing approaches that are seeking the best available positioning method from an individual device, ECOPS facilitates collaborative environments among a set of mobile devices, and thus mobile devices benefit from their neighboring devices.ECOPS supports heterogeneous devices to maximize energy-efficiency, as a device with only WiFi can collaborate with a few available GPS broadcasting devices via WiFi hotspot mode or WiFi Direct-based approximation.A beneficiary device may use one or more locations' information from neighbors opportunistically, depending on their availability.Furthermore, each device improves the received location accuracy via various available methods including trilateration or approximation with geomagnetic sensors.We have implemented an ECOPS prototype application on Android 2.3.6 and 2.2.2 and have tested it with various types of Android mobile devices.The results show that ECOPS provides accuracy within 10 m for nearly 60% of the location estimates, and within 15 m for more than 90% of them.ECOPS also offers significantly more energy efficiency than a GPS-only scheme, while overcoming various service limitations.Future work includes fine-tuning the accuracy by opportunistically exploiting other available sensors on mobile devices.We also plan to consider strategies for various types of LBSs to improve their utility and energy efficiency.

Figure 1 :
Figure 1: Illustration of Global Positioning System.
we compare the measured RSSI with the theoretical RSSI while varying the distance between PB and PR; both inside a building and in outdoor environments are shown, respectively.The theoretical RSSI values are derived from (5).The dotted blue line shows the measured average RSSI values, and the solid green line represents the theoretical RSSI values at the corresponding distances.The system loss WiFi idle state (38 mW/s)

Figure 12 :
Figure 12: Comparison of individual node energy consumption: GPS versus ECOPS PR.
Total energy usage of network (mW) GPS only ECOPS with three GPS data ×10 4

Figure 14 :
Figure 14: An example of field experiments.

33. 31 meters
Worst case error distance:Actual location of PR: the center of the circle Best case error distance: 2.32 meters

Figure 15 :
Figure 15: Experiment results: points calculated with three GPS coordinates and RSSI values.

Figure 16 :
Figure 16: Distribution in error range for location estimated by PR.