{"action":"created","issue":{"url":"https://api.github.com/repos/n76/wifi_backend/issues/40","repository_url":"https://api.github.com/repos/n76/wifi_backend","labels_url":"https://api.github.com/repos/n76/wifi_backend/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/n76/wifi_backend/issues/40/comments","events_url":"https://api.github.com/repos/n76/wifi_backend/issues/40/events","html_url":"https://github.com/n76/wifi_backend/issues/40","id":174151793,"number":40,"title":"APs from connected SSID not used?","user":{"login":"gdt","id":515284,"avatar_url":"https://avatars.githubusercontent.com/u/515284?v=3","gravatar_id":"","url":"https://api.github.com/users/gdt","html_url":"https://github.com/gdt","followers_url":"https://api.github.com/users/gdt/followers","following_url":"https://api.github.com/users/gdt/following{/other_user}","gists_url":"https://api.github.com/users/gdt/gists{/gist_id}","starred_url":"https://api.github.com/users/gdt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdt/subscriptions","organizations_url":"https://api.github.com/users/gdt/orgs","repos_url":"https://api.github.com/users/gdt/repos","events_url":"https://api.github.com/users/gdt/events{/privacy}","received_events_url":"https://api.github.com/users/gdt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-30T23:40:23Z","updated_at":"2016-08-31T00:09:37Z","closed_at":null,"body":"I am not really sure I am describing this precisely and correctly, but it seems that access points from the currently connected SSID are not used.  Or maybe no access points are used when connected.   I am often in a place with a handful of APs on one SSID, and no other APs in range.  Here, I get no location.   If I move several hundred meters and pick up an AP from a network that I don't associate with, it works.   Or it works with the APs I use as I approach.   Again, take details with a grain of salt.\r\n\r\nI wonder if no one else notices because the idea of not picking up foreign APs just doesn't happen in the city.\r\n\r\nYes, I know I should run adb."},"comment":{"url":"https://api.github.com/repos/n76/wifi_backend/issues/comments/243620532","html_url":"https://github.com/n76/wifi_backend/issues/40#issuecomment-243620532","issue_url":"https://api.github.com/repos/n76/wifi_backend/issues/40","id":243620532,"user":{"login":"n76","id":4681938,"avatar_url":"https://avatars.githubusercontent.com/u/4681938?v=3","gravatar_id":"","url":"https://api.github.com/users/n76","html_url":"https://github.com/n76","followers_url":"https://api.github.com/users/n76/followers","following_url":"https://api.github.com/users/n76/following{/other_user}","gists_url":"https://api.github.com/users/n76/gists{/gist_id}","starred_url":"https://api.github.com/users/n76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n76/subscriptions","organizations_url":"https://api.github.com/users/n76/orgs","repos_url":"https://api.github.com/users/n76/repos","events_url":"https://api.github.com/users/n76/events{/privacy}","received_events_url":"https://api.github.com/users/n76/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T00:09:37Z","updated_at":"2016-08-31T00:09:37Z","body":"Using adb logcat might help. :)\r\n\r\nBut it is also possible that the cause of your problem is not properly logged. :(\r\n\r\nThe problem with determining position based on observed WiFi/WLAN APs is that they can move without warning. The backend attempts to deal with this in several ways:\r\n\r\n1. If the SSID is or contains a value that indicates that they might be installed in a vehicle or that the owner does not want them mapped. See the [blacklist file in the source code](https://github.com/n76/wifi_backend/blob/master/app/src/main/java/org/fitchfamily/android/wifi_backend/wifi/WifiBlacklist.java) for current values. This is the only use of the SSID, all other processing is done based on BSSID (i.e. MAC address).\r\n2. If we observe a signal an implausible distance from the previous location we mark the AP as not to be used for location calculations until we get enough more observations confirming it is now stationary at the new location.\r\n3. When actually trying to determine a location we group the observed APs that we have a stable location for based on distance from one another and then we take the largest group.\r\n4. Finally, we require the largest group to have a minimum of two APs. (I suspect this is your problem.)\r\n\r\nSo far, I've not seen a false location based on a moved or moving APs though there are obvious cases where it may fail. For example, a cruise ship with multiple APs observable just leaving port. Though with a locked GPS all the APs on board ought to be tagged as moved and suspect before the ship gets too far.\r\n\r\nSo some questions:\r\n\r\n1. Are all those APs in your problem location sharing the same BSSID (I've heard of some corporate networks that do that). That would make it appear that there is only one AP in the area and it may have an implausibly large coverage area.\r\n2. Are those APs spread apart such that you only have one observable at any given time?\r\n3. Can you get a logcat?\r\n4. If the released backend does not have sufficient logging, would you mind running a debug version with more logging for me? (It would have a different signature, so your current database will be lost and you will have to export it before installing one from me then import the data back).\r\n"}}
{"actor":{"display_login":"n76"}}