Open yaronyg opened 8 years ago
Priority: 2, 6, 3, 4.
NetworkRequest is not suitable for our scenario
NetworkRequest is 'passive'. You say "IF there is a Wifi connection with the following characteristics then we will connect" but we can't force the connection. So we can't use it.
Now we are investigating multicast support.
I meant "If we already have a connection with the following characteristics we will send our data"
Multicast seems to work between devices connected to the group owner but the group owner doesn't seem able to listen.
So let's focus for now on what is the data perf over Wifi? And how long does it take to connect (and can we do it reliably?)
I implemented base version of the test to measure the following commands chain:
I ran described test around 10 times on Samsung S6 and got results from 1900 to 4900 milliseconds
An interesting fact: On Nexus 6p and HTC 10 if we call createGroup in wifi direct, the name and the password of the created access point is always the same for particular phone. On Samsungs S6 and S7 the name and the pass are different between createGroup calls.
For some reason we can't setup connections. We are getting 'network unreachable' errors and we can't find any obvious reason for it.
Scenario: Bluetooth... slow. Wifi.... faster.
Problem: 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.
Work 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.
Investigation: