Projects/Location Estimation based on Wifi Signal Strength: Difference between revisions

From Playful Exploration
Jump to navigation Jump to search
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Goal ==
Implement an algorithm for the ESP8266 to determine it's own position in a Room/Appartmen/House based on the signal strength of surrounding Wifi networks.
== Links ==
* [http://cosco.hiit.fi/Articles/hiit-2004-3.pdf Probabilistic Methods for Location Estimation In Wireless Networks]
* [http://cosco.hiit.fi/Articles/hiit-2004-3.pdf Probabilistic Methods for Location Estimation In Wireless Networks]


== Experiment ==
== Experiment 1 ==
In this experiment an ESP chip is recording the signal strength of all surrounding Wifi networks.  Between 15:18 and 15:23 the ESP was moved between rooms causing the signal strength of the 6 Wifi networks to change.  The values could possibly be feed into an algorithm for probabilistic location estimation in order for the ESP to self detect it's position in the room.
In this experiment an ESP chip is recording the signal strength of all surrounding Wifi networks.  Between 15:18 and 15:23 the ESP was moved between rooms causing the signal strength of the 6 Wifi networks to change.  The values could possibly be feed into an algorithm for probabilistic location estimation in order for the ESP to self detect it's position in the room.
In the experiment only 6 of the 45! wifi networks are graphically represented meaning there is plenty of information for an probabilistic algorithm to work with.  
In the experiment only 6 of the 45! wifi networks are graphically represented meaning there is plenty of information for an probabilistic algorithm to work with.  


=== Code ===
<syntaxhighlight lang=lua>
print("Re-Init")
function listap(t) -- (SSID : Authmode, RSSI, BSSID, Channel)
    print("AP list ...")
    local l = ''
    for ssid,v in pairs(t) do
        local authmode, rssi, bssid, channel = string.match(v, "([^,]+),([^,]+),([^,]+),([^,]+)")
        l = l..'signal,mac='..wifi.ap.getmac()..',ssid='..bssid..' value='..rssi.."\n"
    end
    http.post("http://www.playfulexploration.com:8086/write?db=aplist", nil, l)
    tmr.start(0)
    print("... end AP list")
end
tmr.alarm(0, 1000, tmr.ALARM_SEMI, function() tmr.softwd(60) wifi.sta.getap(listap) end)
</syntaxhighlight>
=== Recording ===
[[File:SSID-SingleStrenght.PNG|600px]]
[[File:SSID-SingleStrenght.PNG|600px]]

Latest revision as of 22:16, 24 July 2016

Goal

Implement an algorithm for the ESP8266 to determine it's own position in a Room/Appartmen/House based on the signal strength of surrounding Wifi networks.

Links

Experiment 1

In this experiment an ESP chip is recording the signal strength of all surrounding Wifi networks. Between 15:18 and 15:23 the ESP was moved between rooms causing the signal strength of the 6 Wifi networks to change. The values could possibly be feed into an algorithm for probabilistic location estimation in order for the ESP to self detect it's position in the room. In the experiment only 6 of the 45! wifi networks are graphically represented meaning there is plenty of information for an probabilistic algorithm to work with.

Code

print("Re-Init")
function listap(t) -- (SSID : Authmode, RSSI, BSSID, Channel)
    print("AP list ...")
    local l = ''
    for ssid,v in pairs(t) do
        local authmode, rssi, bssid, channel = string.match(v, "([^,]+),([^,]+),([^,]+),([^,]+)")
        l = l..'signal,mac='..wifi.ap.getmac()..',ssid='..bssid..' value='..rssi.."\n"
    end
    http.post("http://www.playfulexploration.com:8086/write?db=aplist", nil, l)
    tmr.start(0)
    print("... end AP list")
end
tmr.alarm(0, 1000, tmr.ALARM_SEMI, function() tmr.softwd(60) wifi.sta.getap(listap) end)

Recording

SSID-SingleStrenght.PNG