Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WiFi Direct (Android 4.0) with multiple (3+) devices

Tags:

Like here: Automatic authentication for Android WiFi Direct I want to create a mobile ad-hoc Wifi network with Android devices. But unlike the linked question above I want to use the official Android WiFi Direct API which is availabe since Android 4.0.

So is there a way to not only connect 2 devices via WiFi Direct but also three or more? So messages could be passed from one device to another using several other devices in between (therefore spanning a larger distance between the sender and receiver)?

The Wifi Direct demo only works for pairing two devices and I could not find a way to do anything else.

Thanks!

like image 422
florian h Avatar asked Jun 28 '12 19:06

florian h


People also ask

Can Wi-Fi Direct connect to multiple devices?

Wi-Fi Direct can connect multiple devices without a Wi-Fi AP . Wi-Fi Direct is portable. No Internet connection is required to transfer files between two devices. Only one device needs to be Wi-Fi Direct-certified and it can assume the role of the group owner.

Can you use Wi-Fi Direct and WiFi at the same time?

Some devices certified under the Wi-Fi Direct program support connections to both an infrastructure network and Wi-Fi Direct group at the same time (e.g. a laptop may support an infrastructure connection while also belonging to a Wi-Fi Direct-certified group).

What is the difference between WiFi and Wi-Fi Direct printer?

So, to put it shortly, the main differences between Wi-Fi Direct and WiFi are that: WiFi Direct works directly between devices, without needing a router and a traditional wireless network. WiFi Direct doesn't give you access to the internet.


1 Answers

Is there a way to not only connect 2 devices via WiFi Direct but also three or more?

Yes, the Wi-Fi Direct specifications explain it is possible to create a 1 to many connection. One of the devices will act as a group owner (think it as an access point). I have been able to create a Wi-Fi Direct network with 3 devices during some tests.

As all the devices have to be in the range of the group owner, you are sure that your message will arrive to the second client. 1st client -> group owner -> 2nd client

like image 194
Fabien Demangeat Avatar answered Mar 01 '23 18:03

Fabien Demangeat