-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 02/02/15 18:13, Hans-Christoph Steiner wrote:
> Michael Rogers:
>> Yup, this uses wifi direct to discover peers and Bluetooth or
>> ordinary wifi to connect to them. No user confirmation is
>> required for discovery or connection, unlike using Bluetooth or
>> wifi direct alone.
>> 
>> I think I have a solution for connecting via wifi direct instead
>> of ordinary wifi, again without user confirmation, but I won't be
>> able to test it till tomorrow.

Unfortunately neither of the solutions I had in mind worked. It's
possible to bind a socket to the link-local address used for service
discovery, but other devices can't connect to that socket. Possibly
the interface is configured to reject everything except service
discovery packets, or possibly the other device's routing table
doesn't send the connection over the link-local interface.

The other approach I had in mind was to create a legacy mode AP via
WifiP2pManager.createGroup(). The AP is created successfully, with a
second link-local IPv6 address and a site-local IPv4 address
(192.168.x.x), but the existence of the AP seems to interfere with
service discovery. I need to investigate this further.

>> jmdns could be useful for APIs 14-15, which support wifi direct
>> but not the service discovery stuff. We might be able to get
>> jmdns working over the wifi direct interface, which uses a
>> link-local IPv6 address.
> 
> I don't know if you are looking to support android-10/2.3.3, but
> that might be possible using jmdns.  As far as I understand it,
> WiFi-Direct creates a real WiFi-AP, so the devices that attach to
> that do not need to have any specific WiFi-Direct support, they
> just need to be able to find and connect to a WiFi-AP.  That is
> definitely something you can do automatically in android-10/2.3.3.

Yup, older peers can connect to the AP, but in order to discover it
via jmdns I think both peers would have to be connected to an ordinary AP.

Supporting older devices would be nice, but since this is just a side
project I'll be content if it works on Android 16+, which covers about
85% of devices that connect to Google Play.

Cheers,
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQEcBAEBCAAGBQJU0f3FAAoJEBEET9GfxSfMRR4IAKfmJSlqoINzp/CRyEgZWDPf
HBf/a/oHwr5/FXsppapEPMv49Ze4c6226UrkuBsmspGW4u/en421WFikw/8kSXTB
0lgqiAMe+1vEBox2Bu4ZvgTDDw0s6Ifi3j2Hpy9LpELAFFx2dUbdKLEyAHd4mwa9
7KQa/lRZhMO//mbJIWrgob2Cd1HSGAkeIkWsAWu2BxSypG7T+4s2732yoXhR2A2f
EnxSAoICWVYy0j+At6ih7ud17PQsqKzHlRJsi4hpSu0ni+PR/2dTPiZ4UojelxK1
dOJEXRIH+H+plk5iBXqmTsAZ0wxMtkyaSmey8Buogz1aupbdfbz8Gef9loeyAJs=
=pruF
-----END PGP SIGNATURE-----
_______________________________________________
Guardian-dev mailing list

Post: [email protected]
List info: https://lists.mayfirst.org/mailman/listinfo/guardian-dev

To Unsubscribe
        Send email to:  [email protected]
        Or visit: 
https://lists.mayfirst.org/mailman/options/guardian-dev/archive%40mail-archive.com

You are subscribed as: [email protected]

Reply via email to