{"action":"created","issue":{"url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/issues/1475","repository_url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin","labels_url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/issues/1475/labels{/name}","comments_url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/issues/1475/comments","events_url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/issues/1475/events","html_url":"https://github.com/thaliproject/Thali_CordovaPlugin/issues/1475","id":186873458,"number":1475,"title":"Investigate Wifi Direct use for Thali","user":{"login":"yaronyg","id":1480964,"avatar_url":"https://avatars.githubusercontent.com/u/1480964?v=3","gravatar_id":"","url":"https://api.github.com/users/yaronyg","html_url":"https://github.com/yaronyg","followers_url":"https://api.github.com/users/yaronyg/followers","following_url":"https://api.github.com/users/yaronyg/following{/other_user}","gists_url":"https://api.github.com/users/yaronyg/gists{/gist_id}","starred_url":"https://api.github.com/users/yaronyg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaronyg/subscriptions","organizations_url":"https://api.github.com/users/yaronyg/orgs","repos_url":"https://api.github.com/users/yaronyg/repos","events_url":"https://api.github.com/users/yaronyg/events{/privacy}","received_events_url":"https://api.github.com/users/yaronyg/received_events","type":"User","site_admin":false},"labels":[{"id":434595087,"url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/labels/Android","name":"Android","color":"c0392b","default":false},{"id":456371126,"url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/labels/enhancement","name":"enhancement","color":"d35400","default":true}],"state":"open","locked":false,"assignee":{"login":"evabishchevich","id":17500412,"avatar_url":"https://avatars.githubusercontent.com/u/17500412?v=3","gravatar_id":"","url":"https://api.github.com/users/evabishchevich","html_url":"https://github.com/evabishchevich","followers_url":"https://api.github.com/users/evabishchevich/followers","following_url":"https://api.github.com/users/evabishchevich/following{/other_user}","gists_url":"https://api.github.com/users/evabishchevich/gists{/gist_id}","starred_url":"https://api.github.com/users/evabishchevich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evabishchevich/subscriptions","organizations_url":"https://api.github.com/users/evabishchevich/orgs","repos_url":"https://api.github.com/users/evabishchevich/repos","events_url":"https://api.github.com/users/evabishchevich/events{/privacy}","received_events_url":"https://api.github.com/users/evabishchevich/received_events","type":"User","site_admin":false},"assignees":[{"login":"evabishchevich","id":17500412,"avatar_url":"https://avatars.githubusercontent.com/u/17500412?v=3","gravatar_id":"","url":"https://api.github.com/users/evabishchevich","html_url":"https://github.com/evabishchevich","followers_url":"https://api.github.com/users/evabishchevich/followers","following_url":"https://api.github.com/users/evabishchevich/following{/other_user}","gists_url":"https://api.github.com/users/evabishchevich/gists{/gist_id}","starred_url":"https://api.github.com/users/evabishchevich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evabishchevich/subscriptions","organizations_url":"https://api.github.com/users/evabishchevich/orgs","repos_url":"https://api.github.com/users/evabishchevich/repos","events_url":"https://api.github.com/users/evabishchevich/events{/privacy}","received_events_url":"https://api.github.com/users/evabishchevich/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2016-11-02T17:50:13Z","updated_at":"2016-12-26T15:46:42Z","closed_at":null,"body":"Scenario: Bluetooth... slow. Wifi.... faster.\r\n\r\nProblem: Ideally we would just use Wifi Direct and call it a day. But Android implements a policy that requires users to confirm Wifi Direct connections. Bad.\r\n\r\nWork Around: In theory what we can do is have one of the Android phones be a Wifi Direct Hot Spot. That can be done without interfering with normal wifi functionality. However, unless we use the Wifi Direct client ApI (and trigger the stupid permission dialog) we have to change the other's WifiManager to point at the first phone's hot spot. We would move the SSID and Password over BLE or Bluetooth.\r\n\r\nInvestigation: \r\n1. Fire up the code in BTLib to make sure it still behaves itself properly in terms of forming Wifi Direct Hot Spots and connecting to them. \r\n2. Take a look at NetworkRequest.Builder and see if there is anyway to use setNetworkSpecifier to open two simultaneous Wifi connections (I'm guessing not but I'm desperate). \r\n3. Measure the kind of bandwidth we get on these hotspot connections and how the bandwidth changes as more peers connect to the hotspot (e.g. do we get a linear degradation in speed or super linear?)\r\n4. Measure how long it takes to start a wifi hotspot and how long it takes a phone to connect to that Hotspot.\r\n5. How do we do IP address assignments? I just don't remember anymore how this was handled. How does the client get an IP address to use over the wifi connection? I assume we use non-routable addresses for clients and use ARP or something to claim them. What about the server? What address should it use? How does it get it?\r\n6. We have to test that we can successfully run SSDP which means we have access to multicast channels."},"comment":{"url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/issues/comments/269221601","html_url":"https://github.com/thaliproject/Thali_CordovaPlugin/issues/1475#issuecomment-269221601","issue_url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/issues/1475","id":269221601,"user":{"login":"yaronyg","id":1480964,"avatar_url":"https://avatars.githubusercontent.com/u/1480964?v=3","gravatar_id":"","url":"https://api.github.com/users/yaronyg","html_url":"https://github.com/yaronyg","followers_url":"https://api.github.com/users/yaronyg/followers","following_url":"https://api.github.com/users/yaronyg/following{/other_user}","gists_url":"https://api.github.com/users/yaronyg/gists{/gist_id}","starred_url":"https://api.github.com/users/yaronyg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaronyg/subscriptions","organizations_url":"https://api.github.com/users/yaronyg/orgs","repos_url":"https://api.github.com/users/yaronyg/repos","events_url":"https://api.github.com/users/yaronyg/events{/privacy}","received_events_url":"https://api.github.com/users/yaronyg/received_events","type":"User","site_admin":false},"created_at":"2016-12-26T15:46:42Z","updated_at":"2016-12-26T15:46:42Z","body":"0. Figure out what the bandwidth is.\r\n1. We should investigate proper wifi direct, with the dialog and everything. If that works properly then if we have say 3 phones and they all want to connect to each other, will that work? in other words, can a single phone connect to multiple simultaneous wifi direct groups?\r\n2. If phone A has joined B's group, what happens if phone B tries to join A's group?\r\n2. If someone accidentally says no to the wifi direct permission dialog, what happens if we try to join that wifi direct group again?"}}
{"actor":{"display_login":"yaronyg"}}