简体   繁体   English

Android至iOS通过WiFi或使用Multipeer连接或直接使用WiFi进行连接

[英]Android to iOS connect via WiFi or using Multipeer connectivity or using WiFi direct

So I am developing an APP and I need to connect multiple android and multiple Iphone to send text data without any internet connection or service provider data network. 因此,我正在开发一个APP,我需要连接多个android和多个iphone来发送文本数据,而无需任何互联网连接或服务提供商数据网络。 So one of the phone will have to act as a server to relay information between them. 因此,一部电话必须充当服务器在它们之间中继信息。 But the app will have to decide which phone will be the server and if a phone that is the server leaves the conversation then another phone will pickup as the server this will all be done with some smart programming but before I get there. 但是应用程序必须决定将哪个电话作为服务器,如果是服务器的电话离开会话,则另一部电话将作为服务器,这将通过一些智能编程来完成,但要在到达那里之前。

I know Android WiFi direct can do a one to many connection setup which makes it easy to connect android phone and accomplish the task between android phone only. 我知道Android WiFi Direct可以进行一对多连接设置,这使连接Android手机很容易,并且仅在Android手机之间完成任务。 But the problems comes when I need to connect Iphone with the android phones. 但是问题出在我需要将Iphone与Android手机连接时。 Since the Iphone must be able to act as a server as well. 由于Iphone也必须能够充当服务器。

I would like to know a few things: 我想知道几件事:

  1. Can I connect Android and Iphone via WiFi Direct? 我可以通过WiFi Direct连接Android和Iphone吗?
  2. Can I connect Android and Iphone using Multipeer connectivity feature on Iphone? 我可以使用Iphone上的Multipeer连接功能连接Android和Iphone吗?
  3. Is there anyway to create a soft access point using Iphone? 无论如何,有没有使用Iphone创建软接入点的方法? I know android can do this via WiFi direct feature. 我知道android可以通过WiFi直接功能做到这一点。

If non of these can work can you suggest something. 如果这些都不奏效,您可以提出一些建议。

From the discussion here it doesn't look possible 这里的讨论看来,这不可能

I wonder though if both OS allow enough control over the WiFi transceiver if you couldn't just write an app that could what you are asking and just bypassing the built in software architecture all together. 我不知道两个操作系统是否都允许对WiFi收发器进行足够的控制,如果您不能只编写一个可以满足您的要求的应用程序,而不能完全绕过内置的软件体系结构。 I would think Bluetooth would be too weak except in extremely dense device saturation environments, but just for proof of concept that could be another route to take. 我认为,除非在设备密度极高的饱和环境中,蓝牙会太弱,但这仅是概念验证,可能是另一种选择。 My guess though is that you just wouldn't get that level of control over any of the radios inside a phone through the current OS. 但我的猜测是,您将无法通过当前的操作系统获得对手机内部任何收音机的控制级别。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM