the difference between wi-fi direct and mobile ad-hoc networks in smart phones? - wifi-direct

I want to create a mobile ad-hoc network for android devices.But first I want to know the differences between wi-fi direct, mobile ad-hoc networks and SPANs. Could anybody explain for me?
Thanks.

Firstly, SPANs are just Mobile ad Hoc Networks for Smartphones, SPAN stands for Smart phone ad hoc network so we'll skip that for now.
I'm not sure what kind of depth you're looking for, but in a nutshell:
In Wifi Direct, devices negotiate each other to decide which device will act as an Access point. In Wifi direct you are trying to simulate a Wifi network, where all devices do not interact with each other. Technically, you're creating a "soft" access point on particular devices, and other devices will choose to communicate with these Soft AP's.
In Mobile Ad Hoc (MANET), you can think of every device as a mobile router. Each device is required to properly route traffic, whether it be to some device or to the internet.
EDIT* I also wanted to communicate that in MANET, every device can communicate with each other. This is a very important distinction from Wifi Direct.
Wifi Direct
Mobile Ad Hoc Network

Related

Connect multiple (3+) iPads/iPhones over bluetooth ad-hoc network?

I'm curious if it's possible to have more than two iPads/iPhones connected to one another over a bluetooth network simultaneously. I'd like to design a network game that supports more than two players but I can't find any information to determine if this is even possible.
Bluetooth only supports Device-to-Device not AdHoc. As "pst" suggests, WiFi is the only way to go.
if... you want to try.... first they would have to be jailbroken.
on cydia, try out the wywi app >> bluetooth tether with the pc
it has other functions like usb tethering, its the best tethering app if you dont care about revealing your connection to your carrier, but that doesnt suit the case
i know for a fact that you can tether as ad hoc via usb tethering, i believe the bt tethering should work the same

Does iPhone support WiFi ad-hoc mode?

Does the iPhone support ad-hoc network mode? Can iPhones connect to one another without requiring an existing network? If so, how can I create an Ad Hoc network in my app?
Updated Answer:
Have a look at the MultiPeer Connectivity Framework (documentation link) introduced in iOS 7. NSHipster has a nice write-up on it (link). Although you don't get direct network access, you can easily pass data between devices, and even use other devices to act as middlemen to other devices nearby.
Legacy Answer:
iOS devices cannot make peer-to-peer networks using the built in Settings app or available APIs. However, if you want to send data between devices in your app you have three options.
You can use Game Kit, CoreBluetooth (in limited circumstances), or you can use something like CocoaHTTPServer.
Ad Hoc networking is supported on all iOS devices, but you can not create an ad hoc network from within your application. From the list of available networks, choose the ad hoc network you want to connect to, click the arrow and choose connect automatically. Now, your device will automatically connect to this network whenever it comes within range. After this you can use the connection using regular sockets or any other networking API.
As of iOS 7 you can use the Multipeer Connectivity Framework to connect two iPhones without an existing network. The framework will use Bluetooth, Wifi infrastructure mode, or Wifi Adhoc mode. Unfortunately, you don't have the ability to choose a transport, the framework decides on what is best.
No, stock iPhones do not support ad-hoc Wifi communication.
Yes, iPhones can connect to one another without an existing network, using Bluetooth (via the Gamekit API).
IOS 6.1.3 on an iPad mini will connect to an ad-hoc network
What you are describing is called Wifi peer-to-peer which iOS devices do not support at the moment.

Can you determine if Wifi security is enabled on network you're connected to on iOS?

In my iOS app, I'd like to be able to determine whether the Wifi network the device is currently connected to has Wifi security of some sort enabled (wep, wpa, etc).
CaptiveNetwork provides the SSID of the connected network, but not much else.
Is there an approved way of determining if WEP/WPA/etc are enabled on the currently connected Wifi network?
Apple is not providing any Wifi related API and all the information that is available to you is given by the actual network, so basically you cant access this information.

iPhone to device via Wifi

I have an embedded hardware device that currently broadcasts data via bluetooth. I don't want to go through the steps of the MFi program, so I'm thinking about using a different chip in my device to broadcast the same data via WiFi/UDP.
It is my understanding that in that case the only thing I need is sockets and bonjour for discovery.
My question is: do I need a third device in the equation (a wireless router where the two devices are connected)? Or can the two devices establish some sort of ad hoc network?
Pointers are greatly appreciated.
Have a look at WiFly from Roving Networks. It might be what you're looking for.

Is it possible to do streaming WiFi Communications on the iPhone?

I am looking to develop an iPhone application that will require point-to-point WiFi communications on an iPhone. I would like to use the WiFi interface and have the application stream between the phone and a WiFi device. Does anyone have some experience with this? Is it even possible? I know there is a discovery application but I am looking for something a little more robust.
As far as I know (as the SDK stands now), the only thing available is communication over the existing network connection. The SDK doesn't allow for setting up wireless network connections, or creating ad-hoc networks. I believe the only way to join or create wifi networks is through the settings app.