WIFI를 이용한 실내 장소 인식 기술에 대해 설명합니다. WIFI 신호 강도를 이용한 지문 기법으로 실내 위치를 추정할 수 있습니다. Android에서 WIFI 스캔을 수행하여 AP 정보와 신호 강도를 수집한 후 유사도 측정 알고리즘을 이용하여 가장 유사한 지문과 매칭하여 장소를 인식합니다. 하지만 실제 배포 환경
13. 2.1 Why WiFi?
In 2014, over 2.4 billionWi-Fi enabled devices were shipped
10 billionWi-Fi enabled devices shipped cumulatively in early 2015
161 millionConsumer Wi-Fi Access Points Shipped in 2013
14.
15. 2.2 WIFI Access Point (AP)
BSSID AP MAC Address 0a:30:0d:88:dd:f2
SSID Network Name olleh_startbucks
RSS
Received Signal
Strength
-48 dBm
frequency 2462
16. 2.3 WIFI Signal Propagation
distance
rss
15~20 dBm
Previous studies show that the indoor
law: σXldnPri +−= )(log10 0100
, w
strength at the distance l0 from tran
represents the shadow noise and is mo
standard deviation σ dB [Rappa96].
depends on the surrounding environm
measurement position, the distance idˆ
(2.1)
ous studies show that the indoor pathloss model follows the distance power
σXldnPri +−= )(log10 0100
, where ri is the RSS in dB, P0 the signal
th at the distance l0 from transmitter, and n the pathloss exponent. Xσ
ents the shadow noise and is modeled as a normal random variable with the
ard deviation σ dB [Rappa96]. Typically, l0 is set to 1 m. The value of n
ds on the surrounding environments. Given the measurement ri at the ith
urement position, the distance idˆ from AP can be estimated as:
(2.2)
29. 3.5 Android WIFI OFF
final WifiManager wifi =
(WifiManager) context.getSystemService(Context.WIFI_SERVICE);
wifi.setWifiEnabled(true);
wifi.startScan();
wifi.setWifiEnabled(false);
==> WIFI ON 이 되지 않는 현상 발생
==> LG G2의 경우 2.4GHz 대역만 scan 되는 현상 발생
==> 생각보다 큰 power 소모가 발생한다
30. 3.6 Android Background Service
장소를 monitoring하고 있는 서비스는
계속 죽었다 살아났다 함
—―> 모든 status 변수는 non-volatile 메모리로 관리