Is iOS 7 Multipeer Connectivity compatible with Android Wi-Fi Direct?

南笙酒味 提交于 2019-11-27 00:22:31

问题


I've been looking at iOS 7's new P2P networking framework, MultipeerConnectivity, and from the description, it seems to me that it uses a combination of some kind of Wi-Fi Direct technology and Bluetooth PANs.

Is the Wi-Fi Direct technology in this framework compatible with Android's Wi-Fi Direct? Can this framework actually be used for cross-platform P2P networking?


回答1:


The device is not found by either when advertising or browsing with MultipeerConnectivity. Tried on Galaxy Tab 2:




回答2:


This is what we know:

  1. There's no BTLE/Bluetooth 4.0 advertisement visible on my Texas Instruments Bluetooth Low energy scanner.
  2. No WiFi Direct activity seen by JuJoDi.
  3. Talkkr app can connect while WiFi is off and the connection takes about 10 seconds.

My working theory: the MultiPeer uses Bluetooth Classic, based on the above.

iOS Bluetooth Classic is known to be under the Apple MFA Accessory API's tight control and lockdown, including the MFA authentication challenge-response. Apple controls the MFA encryption keys (either in software or by the accessory authentication chips). It makes it inaccessible to other platforms.




回答3:


No, the two are not compatible.

The MultipeerConnectivity documentation you linked to explicitly states (emphasis mine):

The Multipeer Connectivity framework provides support for discovering services provided by nearby iOS devices

Although you may be able to hack together a workaround akin to the short-lived iMessage app for Android, I wouldn't recommend it.




回答4:


Based on my experimentation with iOS 7 AirDrop, it doesn't seem to be using WiFi Direct.
The transfer rates are very low indicating that it may only be legacy Adhoc WiFi (capped at 11 Mbps).
Did you ever read Apple claiming to support Wifi Direct explicitly?
Please read my blog post for details.




回答5:


I am very interested in this subject as well and I came across these rather old links

AllJoyn

AllJoyn® is a collaborative open-source software framework that makes it easy for developers to write applications that can discover nearby devices, and communicate with each other directly regardless of brands, categories, transports, and OSes without the need of the cloud Source: https://allseenalliance.org/developers/learn OpenPeer SDK

Open Peer is an open P2P signalling protocol Source: http://openpeer.org/open-peer-sdk-for-ios/ I haven't used any of these libraries but I am interested to add them to my simple game for the fun of it.

source Peer to peer android and iOS with Wifi direct (multipeer connectivity?)




回答6:


Maybe a bit delayed, but technologies have evolved since so there is certainly new info around.

As iOS has yet to open up an API for WiFi Direct and Multipeer Connectivity is iOS only, I believe the best way to approach this is to use BLE, which is supported by both platforms (some better than others).

On iOS a device can act both as a BLE Central and BLE Peripheral at the same time, on Android the situation is more complex as not all devices support the BLE Peripheral state. Also the Android BLE stack is very unstable (to date).

If your use case is feature driven, I would suggest to look at Frameworks and Libraries that can achieve this for you, without you needing to build it up from scratch.

For example: p2pkit.io or google nearby

Disclaimer: I work for Uepaa, developing p2pkit.io for Android and iOS.



来源:https://stackoverflow.com/questions/19067794/is-ios-7-multipeer-connectivity-compatible-with-android-wi-fi-direct

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!